#47987 [NEW]: Autoload stops working if E_DEPRECATED occurs
| From: | acecream1 at hotmail dot com | Date: | Thu, 16 Apr 2009 13:22:07 +0000 |
| Subject: | #47987 [NEW]: Autoload stops working if E_DEPRECATED occurs | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-135879@lists.php.net to get a copy of this message | ||
From: acecream1 at hotmail dot com
Operating system: Windows Server 2003
PHP version: 5.3.0RC1
PHP Bug Type: SPL related
Bug description: Autoload stops working if E_DEPRECATED occurs
Description:
------------
I use my custom error_handler and
when it is called i throw my custom exception which is being autoloaded
using spl_autoload_register when first error occours.
This works normaly if Notice or Warning occours (did not test all the
error types) but in case of E_DEPRECATED error the autoload is not called
and i this reflects in a fatal error becouse my exception class does not
exist.
Reproduce code:
---------------
1. spl_autoload_register(array($class, $method));
2. set_error_handler(array($this, 'handleError'));
3. Params\Store\Get::getInstance(&$_GET);
//Call-time pass-by-reference has been deprecated
D:\www\lib\framework\Framework\Params.php on line 25
Expected result:
----------------
When E_DEPRECATED error would occour i would expect that all registered
autoloaders would still function inside the error handler.
Actual result:
--------------
Fatal error: Class 'Framework\Error\Handler\Exception' not found in
D:\www\lib\framework\Framework\Params.php on line 25
--
Edit bug report at http://bugs.php.net/?id=47987&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47987&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47987&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47987&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47987&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47987&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47987&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47987&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47987&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47987&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47987&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47987&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47987&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47987&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47987&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47987&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47987&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47987&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47987&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47987&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47987&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47987&r=mysqlcfg