From fde9bac47628de88d91b4d7faa082420e72a5924 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Wed, 11 Feb 2004 12:35:24 +0000 Subject: [PATCH] Fix crash (patch by Rob Richards) --- Zend/zend_reflection_api.c | 2 +- ext/reflection/php_reflection.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.40.0