Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace system package #2 #567

Merged
merged 1 commit into from Dec 15, 2014
Merged

Namespace system package #2 #567

merged 1 commit into from Dec 15, 2014

Conversation

cnelissen
Copy link
Contributor

This PR adds namespaces to all the System* classes and implements PSR-4 autoloading.

Rebased.

@scrutinizer-notifier
Copy link

The inspection completed: No issues found

@cnelissen
Copy link
Contributor Author

@terrafrost I think that get_class should be removed and replaced with "instanceof" across the board. I think it should be a separate PR though.

@@ -52,45 +52,6 @@
// Used to do Diffie-Hellman key exchange and DSA/RSA signature verification.
use \phpseclib\Math\BigInteger;

/**#@+
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, what is going on here? Is this a leftover from somewhere else?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, somehow those defines got put back in... It is in the current php5 branch.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And indeed they were not part of https://github.com/phpseclib/phpseclib/pull/532/files#diff-4. Similar SSH1 constants have been removed, though.

bantu added a commit to bantu/phpseclib that referenced this pull request Dec 15, 2014
Namespace system package phpseclib#2

* cnelissen/NamespaceSystemPackage:
  Namespaced classes
@bantu
Copy link
Member

bantu commented Dec 15, 2014

This is good to go. Thanks a lot.

@bantu bantu merged commit fddf20f into phpseclib:php5 Dec 15, 2014
@cnelissen cnelissen deleted the NamespaceSystemPackage branch December 15, 2014 22:28
@bantu bantu mentioned this pull request Dec 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants