El 21/08/14 a las #4, David C. Rankin escribió: m/dl/bugs/openSuSE/131/classes.php.txt
The latest autoload function was:
function __autoload($class_name) { if (file_exists(AVFX_LIB_DIR.$class_name.'.php')) require_once $class_name.'.php'; }
The problem was first noted on update of php 5.4.4-1 -> 5.4.5-1.
So, the autoloader changed behaviour in a minor version update ? hrmm..that smells bad..the original __autoload is : function __autoload($class_name) { if (file_exists($class_name.'.php')) require_once $class_name . '.php'; } Well..that's some very fishy code there ;-) Hrmm.. what's the current working directory value at the time __autoload is executed .. ? ( getcwd() ) hint: that's some unspecified behaviour :-) It might have changed to the CWD of the file actually requesting the class to be autoloaded instead of the CWD of the file itself.. or it is SERVER_ROOT like in __destruct() .. -- Cristian "I don't know the key to success, but the key to failure is trying to please everybody." -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org