From: Zeev Suraski Date: Wed, 11 Feb 2004 12:35:24 +0000 (+0000) Subject: Fix crash (patch by Rob Richards) X-Git-Tag: php-5.0.0b4RC1~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fde9bac47628de88d91b4d7faa082420e72a5924;p=php Fix crash (patch by Rob Richards) --- diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index c7c5076e7d..d923f811ba 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.c @@ -1008,7 +1008,7 @@ ZEND_METHOD(reflection_function, __construct) if (zend_hash_find(EG(function_table), lcname, name_len + 1, (void **)&fptr) == FAILURE) { free_alloca(lcname); zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC, - "Function %s() does not exist", Z_STRVAL_P(name)); + "Function %s() does not exist", name_str); return; } free_alloca(lcname); diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index c7c5076e7d..d923f811ba 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -1008,7 +1008,7 @@ ZEND_METHOD(reflection_function, __construct) if (zend_hash_find(EG(function_table), lcname, name_len + 1, (void **)&fptr) == FAILURE) { free_alloca(lcname); zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC, - "Function %s() does not exist", Z_STRVAL_P(name)); + "Function %s() does not exist", name_str); return; } free_alloca(lcname);