ID:               13993
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: Redhat Linux 7.1
 PHP Version:      4.0.6
 New Comment:

I have the same problem - would be a very nice feature to be able to
catch errors in eval statements.


Previous Comments:
------------------------------------------------------------------------

[2001-11-10 15:00:10] [EMAIL PROTECTED]

Reopening as a feature-request.

------------------------------------------------------------------------

[2001-11-10 12:24:47] [EMAIL PROTECTED]

Parse errors are never handled by set_error_handler().

------------------------------------------------------------------------

[2001-11-08 15:30:54] [EMAIL PROTECTED]

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

Reply via email to