]> granicus.if.org Git - php/commitdiff
- Revert r314387
authorFelipe Pena <felipe@php.net>
Sun, 7 Aug 2011 13:04:02 +0000 (13:04 +0000)
committerFelipe Pena <felipe@php.net>
Sun, 7 Aug 2011 13:04:02 +0000 (13:04 +0000)
  (property_info.name has the mangled name)

Zend/zend_API.c

index 18aae835fd68512fc88211891f30817814b59a68..96e5b13a6bc44c0e74fc1adc8270e03d25c095bf 100644 (file)
@@ -3378,7 +3378,7 @@ ZEND_API int zend_declare_property_ex(zend_class_entry *ce, const char *name, in
 
        property_info.ce = ce;
 
-       zend_hash_quick_update(&ce->properties_info, property_info.name, property_info.name_length+1, h, &property_info, sizeof(zend_property_info), NULL);
+       zend_hash_quick_update(&ce->properties_info, name, name_length+1, h, &property_info, sizeof(zend_property_info), NULL);
 
        return SUCCESS;
 }