Re: error handling

From: Date: Mon, 18 Nov 2002 11:22:09 +0000
Subject: Re: error handling
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-91248@lists.php.net to get a copy of this message
> Can't argue with that, however (;)), I find it annoying that PHP stops > processing if there is a parse error passed to an eval() command. I'd > like a way to make eval() just return E_PARSE if the script passed to it > fails. Or a more general command to verify PHP code well, well, well... everybody is talking about E_PARSE but none is talking about E_ERROR. The correct syntax of a program is easy to verify (php -l <file>). But it's impossible to know if it'll execute correctly without E_ERROR. So to be sure that there will be no E_PARSE is enough to execute it once, but not the same with E_ERROR. Mattia

« previous php.dev (#91248) next »