#38303 [Opn->Asn]: spl_autoload_register() supress all errors silently
| From: | iliaa@php.net | Date: | Thu, 03 Aug 2006 03:14:51 +0000 |
| Subject: | #38303 [Opn->Asn]: spl_autoload_register() supress all errors silently | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-100254@lists.php.net to get a copy of this message | ||
ID: 38303
Updated by: iliaa@php.net
Reported By: marcos dot neves at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: SPL related
Operating System: WINXP
PHP Version: 5CVS-2006-08-03 (snap)
-Assigned To:
+Assigned To: iliaa
Previous Comments:
------------------------------------------------------------------------
[2006-08-03 02:34:43] marcos dot neves at gmail dot com
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 this bug report at http://bugs.php.net/?id=38303&edit=1