|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2014-06-25 21:09 UTC] spam2 at rhsoft dot net
Description: ------------ https://bugs.php.net/bug.php?id=7363 that happens again @include() in __get and __autoload leads to supress any errors in the included files which is wrong - @include is meant to save multiple and expsensive filesystem-operations by enforce if(file_exists(){include()} but *not* to supress any warings and even fatal errors inside the includeed code if it don't fail Expected result: ---------------- supress warnings if includes don#t exists but not runtime and parse errors in included code Actual result: -------------- a white page in many cases because @include supresses recursive PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 12:00:01 2025 UTC |
@ operator is supposed to turn off all errors until it returns to it. [yohgaki@dev php-src]$ php -d error_reportring=-1 t.php PHP Notice: Undefined variable: aaaa in /home/yohgaki/workspace/ext/git/oss/php.net/php-src/t.php on line 3 [yohgaki@dev php-src]$ cat t.php <?php function f() { echo $aaaa; } @f(); f();