Bug #15911 Updated: call to undefined function in eval ()'ed code causes script to die

From: Date: Mon, 08 Jul 2002 00:49:59 +0000
Subject: Bug #15911 Updated: call to undefined function in eval ()'ed code causes script to die
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13439@lists.php.net to get a copy of this message
ID: 15911 Updated by: sniper@php.net Reported By: sander@php.net Status: Open -Bug Type: Unknown/Other Function +Bug Type: Scripting Engine problem Operating System: Debian (Sid) Linux PHP Version: 4.0CVS-2002-03-06 Previous Comments: ------------------------------------------------------------------------ [2002-03-06 14:06:40] sander@php.net If eval()'ed code contains a parse error, the rest of the php script will continue. If it contains a call to an undefined function, it will die, and it won't execute the rest of the script. That's very inconsistant behaviour!!!! <?php eval("foo();"); echo "bar"; // this will never be executed!!! ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15911&edit=1

« previous php.bugs (#13439) next »