File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1013,13 +1013,13 @@ ZEND_API zend_result ZEND_FASTCALL zend_ast_evaluate_inner(
10131013 zend_string * function_name = zend_ast_get_str (ast -> child [0 ]);
10141014 zend_string * function_name_lc = zend_string_tolower (function_name );
10151015 fptr = zend_fetch_function (function_name_lc );
1016- zend_string_release (function_name_lc );
10171016 if (!fptr && ast -> child [0 ]-> attr != ZEND_NAME_FQ ) {
10181017 const char * backslash = zend_memrchr (ZSTR_VAL (function_name_lc ), '\\' , ZSTR_LEN (function_name_lc ));
10191018 if (backslash ) {
10201019 fptr = zend_fetch_function_str (backslash + 1 , ZSTR_LEN (function_name_lc ) - (backslash - ZSTR_VAL (function_name_lc ) + 1 ));
10211020 }
10221021 }
1022+ zend_string_release (function_name_lc );
10231023 if (!fptr ) {
10241024 zend_throw_error (NULL , "Call to undefined function %s()" , ZSTR_VAL (function_name ));
10251025 return FAILURE ;
You can’t perform that action at this time.
0 commit comments