php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch capture_parse_exceptions for Documentation problem Bug #70929

Patch version 2015-11-17 18:40 UTC

Return to Bug #70929 | Download this patch
Patch Revisions:

Developer: bishop@php.net

--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -1988,7 +1988,7 @@ ZEND_FUNCTION(create_function)
        eval_code[eval_code_length] = '\0';

        eval_name = zend_make_compiled_string_description("runtime-created function");
-       retval = zend_eval_stringl(eval_code, eval_code_length, NULL, eval_name);
+       retval = zend_eval_stringl_ex(eval_code, eval_code_length, NULL, eval_name, 1);
        efree(eval_code);
        efree(eval_name);

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 05:01:30 2024 UTC