You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: