Patch for zend_reflection_api

From: Date: Wed, 11 Feb 2004 12:15:33 +0000
Subject: Patch for zend_reflection_api
Groups: php.internals 
Request: Send a blank email to internals+get-7729@lists.php.net to get a copy of this message
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);
« previous php.internals (#7729) next »