Fixes a segfault when calling reflection_function::export('Foo'); and function doesnt exist.
Index: zend_reflection_api.c
===================================================================
RCS file: /repository/ZendEngine2/zend_reflection_api.c,v
retrieving revision 1.85
diff -u -r1.85 zend_reflection_api.c
--- zend_reflection_api.c       4 Feb 2004 22:19:00 -0000       1.85
+++ zend_reflection_api.c       10 Feb 2004 14:38:50 -0000
@@ -1008,7 +1008,7 @@
        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);

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to