#15911 [Opn->Bgs]: call to undefined function in eval ()'ed code causes script to die

From: Date: Mon, 09 Sep 2002 15:23:11 +0000
Subject: #15911 [Opn->Bgs]: 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-18801@lists.php.net to get a copy of this message
ID: 15911 Updated by: stas@php.net Reported By: sander@php.net -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Debian (Sid) Linux PHP Version: 4.0CVS-2002-03-06 New Comment: Yes, this is indeed the case and this is intended behaviour. For now there is no a good way to recover from undefined funxtion error inside running script, so indeed it causes a fatal error. If you have good reasons why it should be changed, etc., you could submit feature request and/or contact developers on php-dev@lists.php.net. 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 (#18801) next »