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

Version 5.0.2 'class_exists' addition #56

Open
cjd118 opened this issue Oct 5, 2016 · 0 comments
Open

Version 5.0.2 'class_exists' addition #56

cjd118 opened this issue Oct 5, 2016 · 0 comments

Comments

@cjd118
Copy link

cjd118 commented Oct 5, 2016

Hi,

I'm having a problem with the wrapping of all classes with class_exists in 5.0.2.

In my case, the Yii 1.x autoloader tries to load the class when class_exists is called and because Yii 1.x doesn't often integrate nicely with other libs/composer, one of the things the autoloader tries to do is include a php file with the class name if it can't find any other match (rather than return false). Basically it makes class_exist unusable as it currently is.

I think these calls needs to pass false as second parameter to stop the autoloader kicking in (see here ).

I'm not clear on why it is worth wrapping classes in a class_exist call anyway?

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

No branches or pull requests

1 participant