|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2002-04-10 21:11 UTC] ben at qubed dot co dot nz
  [2002-06-12 16:58 UTC] jukkaho at mail dot student dot oulu dot fi
  [2003-07-10 20:13 UTC] brad at info-link dot net
  [2011-01-01 00:08 UTC] jani@php.net
 
-Package:          Feature/Change Request
+Package:          Scripting Engine problem
-Operating System: Redhat Linux 7.1
+Operating System: *
-PHP Version:      4.0.6
+PHP Version:      *
  [2011-01-01 00:09 UTC] jani@php.net
 
-Summary: eval() parse errors not using error_handler
+Summary: Allow catching parse errors in eval() with user
          defined error handler
  [2013-10-27 15:42 UTC] krakjoe@php.net
 
-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: krakjoe
  [2013-10-27 15:42 UTC] krakjoe@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 19:00:02 2025 UTC | 
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.