Autoloader breaks in shutdown function?
|Reported by:||srokap||Owned by:|
I had bug in mysql server config, with too small chunk size, and got such error:
Fatal error: spl_autoload(): Class DatabaseException could not be loaded in /var/www/html/engine/lib/database.php on line 262
I've checked two times that proper file was in proper path and readable. Server was used for a long time, and it's not the first situation when it tried to throw DatabaseException. It seems that autoloader doesn't work in shutdown handler (could it be connected to known issues with changing execution dir in shutdown functions in php?).
Info on PHP (same as CGI):
PHP 5.3.3 (cli) (built: Nov 2 2011 23:35:28) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans