From: Operating system: FreeBSD 8.0 PHP version: 5.3.5 Package: *Programming Data Structures Bug Type: Bug Bug description:Autoload not called in user-defined error handler function in case of E_STRICT
Description: ------------ __autoload function is not called in user-defined error handler function in case of E_STRICT error. In case of any other type of errors (thet user-defined error handler function can handle) the autoload function is called properly. Test script: --------------- test.php: <?php set_error_handler('php_error'); function php_error($errno, $errcode) { t_class::t_function($errno, $errcode); } function __autoload($class_name) { echo 'autoload called'; exit; } require('nf.php'); ?> nf.php (to create an E_STRICT ERROR: Redefining already defined constructor): <?php class number_format { public function __construct() {} public function number_format($number) { echo number_format($number, 0, '.', '.'); } } ?> Expected result: ---------------- autoload called Actual result: -------------- Fatal error: Class 't_class' not found -- Edit bug report at http://bugs.php.net/bug.php?id=54054&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54054&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54054&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54054&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54054&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54054&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54054&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54054&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54054&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54054&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54054&r=support Expected behavior: http://bugs.php.net/fix.php?id=54054&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54054&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54054&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54054&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54054&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54054&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54054&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54054&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54054&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54054&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54054&r=mysqlcfg