]> granicus.if.org Git - php/commitdiff
Use property_info.name here instead since *name might be free'ed at this point
authorRasmus Lerdorf <rasmus@php.net>
Sun, 7 Aug 2011 00:01:17 +0000 (00:01 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sun, 7 Aug 2011 00:01:17 +0000 (00:01 +0000)
@dmitry please review

Zend/zend_API.c

index fb49767e03d8d363048042d31556e593f659a97b..18aae835fd68512fc88211891f30817814b59a68 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, name, name_length + 1, h, &property_info, sizeof(zend_property_info), NULL);
+       zend_hash_quick_update(&ce->properties_info, property_info.name, property_info.name_length+1, h, &property_info, sizeof(zend_property_info), NULL);
 
        return SUCCESS;
 }