#44262 [NEW]: E_STRICT stops errors in __autoload() and terminates script

From: Date: Wed, 27 Feb 2008 11:30:49 +0000
Subject: #44262 [NEW]: E_STRICT stops errors in __autoload() and terminates script
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-122739@lists.php.net to get a copy of this message
From: ryh at poczta dot wp dot pl Operating system: PHP version: 5.2.5 PHP Bug Type: *General Issues Bug description: E_STRICT stops errors in __autoload() and terminates script Description: ------------ Other example: This should show that there is an error in file xx.php Put the files in the same directory and run test.php Then change to E_ALL and see the correct error alert. Reproduce code: --------------- File test.php ----------------------- error_reporting(E_STRICT); function autoload($class_name) { require_once Dirname(__FILE__).'/'.$class_name . '.php'; } spl_autoload_register('autoload'); $obj = new xx(); File xx.php -------------------------- class xx { abstract function yy(); } class zz extends zz { } Expected result: ---------------- Change to error_reporting to E_ALL and see the correct error alert. Actual result: -------------- Empty page. -- Edit bug report at http://bugs.php.net/?id=44262&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44262&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44262&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44262&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44262&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44262&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44262&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44262&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44262&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44262&r=support Expected behavior: http://bugs.php.net/fix.php?id=44262&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44262&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44262&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44262&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44262&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44262&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44262&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44262&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44262&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44262&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44262&r=mysqlcfg

« previous php.bugs (#122739) next »