|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-03 15:03 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 21:00:02 2025 UTC |
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