#38303 [NEW]: spl_autoload_register() supress all errors silently
| From: | marcos dot neves at gmail dot com | Date: | Thu, 03 Aug 2006 02:34:44 +0000 |
| Subject: | #38303 [NEW]: spl_autoload_register() supress all errors silently | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-100253@lists.php.net to get a copy of this message | ||
From: marcos dot neves at gmail dot com
Operating system: WINXP
PHP version: 5CVS-2006-08-03 (snap)
PHP Bug Type: SPL related
Bug description: spl_autoload_register() supress all errors silently
Description:
------------
If an error happens inside the loaded class, it dies silently with no
display. That is horrible to debugging.
Reproduce code:
---------------
<?
echo foo
class Abc {}
?>
<?
// autoload.php
spl_autoload_register();
//require_once "abc.php"; // uncomment to show error
new Abc();
?>
Expected result:
----------------
Parse error: parse error, unexpected T_CLASS, expecting ',' or ';' in
abc.php on line 5
Actual result:
--------------
nothing is displayed
--
Edit bug report at http://bugs.php.net/?id=38303&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38303&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38303&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38303&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38303&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38303&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38303&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38303&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38303&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38303&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38303&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38303&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38303&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38303&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38303&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38303&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38303&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38303&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38303&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38303&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38303&r=mysqlcfg