]> granicus.if.org Git - php/commitdiff
Fix crash (patch by Rob Richards)
authorZeev Suraski <zeev@php.net>
Wed, 11 Feb 2004 12:35:24 +0000 (12:35 +0000)
committerZeev Suraski <zeev@php.net>
Wed, 11 Feb 2004 12:35:24 +0000 (12:35 +0000)
Zend/zend_reflection_api.c
ext/reflection/php_reflection.c

index c7c5076e7de001688348e7caf7c3402a4f3ed2d1..d923f811bade2d61afd2fa1fa1b5b7cbdb7154f7 100644 (file)
@@ -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);
index c7c5076e7de001688348e7caf7c3402a4f3ed2d1..d923f811bade2d61afd2fa1fa1b5b7cbdb7154f7 100644 (file)
@@ -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);