Re: Bug #13993 Updated: eval() parse errors not using error_handler
| From: | Markus Fischer | Date: | Sat, 10 Nov 2001 17:54:15 +0000 |
| Subject: | Re: Bug #13993 Updated: eval() parse errors not using error_handler | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-70003@lists.php.net to get a copy of this message | ||
Shouldn't this be a feature request then? Possible validation
before eval() and/or bailout from eval() so the user can catch
it?
- Markus
On Sat, Nov 10, 2001 at 05:24:47PM -0000, sander@php.net wrote :
> ID: 13993
> Updated by: sander
> Reported By: sbarnum@pointsystems.com
> Old Status: Open
> Status: Closed
> Bug Type: Scripting Engine problem
> Operating System: Redhat Linux 7.1
> PHP Version: 4.0.6
> New Comment:
>
> Parse errors are never handled by set_error_handler().
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2001-11-08 15:30:54] sbarnum@pointsystems.com
>
> I'm trying to validate some dynamically generated PHP code using eval()
> set_error_handler('eval_error');
> eval($php_code);
> restore_error_handler();
>
> problem: if $php_code contains a parse error, the error is not reported using the eval_error()
> function, but uses the generic error handler.
>
> ------------------------------------------------------------------------
>
>
>
> Edit this bug report at
> http://bugs.php.net/?id=13993&edit=1
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net