|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2002-06-21 10:45 UTC] Sky at quit-clan dot de
  [2002-06-24 03:00 UTC] sniper@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 08:00:01 2025 UTC | 
I want to handle Parse_Errors and similar Fatals with my custom error handler when they occur in eval()'d code. This is necessary when i want to execute custom code in my console script and prevent this code from crashing my entire program if there is only a simple typo in there... I have achieved this by a little hack in the "zend_execute.c" but i don't know if this handles any errors right that don't occur in eval'd() code... This is what i changed (to even prevent a segmentation fault) (zend_execute.c, line 1563): if (zend_hash_find(active_function_table, function_name->value.str.val, function_name->value.str.len+1, (void **) &function)==FAILURE) { zend_error(E_USER_ERROR, "Call to undefined function: %s()", function_name->value.str.val); return; }