For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > December 2004 > cvs: ZendEngine2(PHP_5_0) / zend_reflection_api.c









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: ZendEngine2(PHP_5_0) / zend_reflection_api.c
Marcus Boerger

2004-12-27, 3:55 pm

helly Mon Dec 27 10:14:59 2004 EDT

Modified files: (Branch: PHP_5_0)
/ZendEngine2 zend_reflection_api.c
Log:
- MFH: Need to unmangle the class name here

http://cvs.php.net/diff.php/ZendEng...1.111.2.16&ty=u
Index: ZendEngine2/zend_reflection_api.c
diff -u ZendEngine2/zend_reflection_api.c:1.111.2.15 ZendEngine2/zend_reflection_api.c:1.111.2.16
--- ZendEngine2/zend_reflection_api.c:1.111.2.15 Mon Dec 27 08:33:04 2004
+++ ZendEngine2/zend_reflection_api.c Mon Dec 27 10:14:58 2004
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/

-/* $Id: zend_reflection_api.c,v 1.111.2.15 2004/12/27 13:33:04 helly Exp $ */
+/* $Id: zend_reflection_api.c,v 1.111.2.16 2004/12/27 15:14:58 helly Exp $ */
#include "zend.h"
#include "zend_API.h"
#include "zend_exceptions.h"
@@ -2867,7 +2867,7 @@
ZEND_METHOD(reflection_property, __construct)
{
zval *propname, *classname;
- char *name_str;
+ char *name_str, *class_name, *prop_name;
int name_len;
zval *object;
reflection_object *intern;
@@ -2932,8 +2932,9 @@
ZVAL_STRINGL(classname, ce->name, ce->name_length, 1);
zend_hash_update(Z_OBJPROP_P(object), "class", sizeof("class"), (void **) &classname, sizeof(zval *), NULL);

+ zend_unmangle_property_name(property_i
nfo->name, &class_name, &prop_name);
MAKE_STD_ZVAL(propname);
- ZVAL_STRING(propname, property_info->name, 1);
+ ZVAL_STRING(propname, prop_name, 1);
zend_hash_update(Z_OBJPROP_P(object), "name", sizeof("name"), (void **) &propname, sizeof(zval *), NULL);

reference = (property_reference*) emalloc(sizeof(property_reference));
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com