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

#3: Fixed the Plugin loader when loading plugins from 3rd party packages. #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zero2one
Copy link

Fixed checking if a class exists by using the composer autoloader.

… party packages.

See diablomedia#3

The plugin loader does not load plugins from 3thd party packages (eg. https://github.com/AMOSoft/zf1-extras).

This because the loader is checking if tha class exists without allowing autoload to work.
This is old ZF1 code from pre-composer era.

Changing the code in the /src/Zend/Loader/PluginLoader.php file fixes this issue.
@zero2one zero2one changed the title #3: Fixed the Plugin loader when loading plugins from 3thd party packages. #3: Fixed the Plugin loader when loading plugins from 3rd party packages. Nov 16, 2018
@jaydiablo
Copy link
Member

@zero2one I actually ran into this same issue when I was extracting this component from the main zf1 repo, as I thought it would be nice if it would use the autoloader here for similar reasons.

However, when this change is made, this test in the main ZF1 repo fails: https://github.com/diablomedia/zf1/blob/master/tests/Zend/Amf/ServerTest.php#L1065

In the doc-block of that test, it refers to this ZF ticket: http://www.zendframework.org.cn/issues/browse/ZF-6625

We don't personally use Zend_Amf, but I didn't want to revert a change that was made to fix a security vulnerability, especially if anyone may be using our fork of ZF1 and are using Zend_Amf.

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.

2 participants