Bug #67519 [NEW]: @include supresses even syntax errors in the include

From: Date: Wed, 25 Jun 2014 21:09:54 +0000
Subject: Bug #67519 [NEW]: @include supresses even syntax errors in the include
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186346@lists.php.net to get a copy of this message
From: spam2 at rhsoft dot net Operating system: PHP version: 5.5.13 Package: Scripting Engine problem Bug Type: Bug Bug description:@include supresses even syntax errors in the include 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 -- Edit bug report at https://bugs.php.net/bug.php?id=67519&edit=1 --

« previous php.bugs (#186346) next »