Use property_info.name here instead since *name might be free'ed at this point

@dmitry please review
This commit is contained in:
Rasmus Lerdorf 2011-08-07 00:01:17 +00:00
parent 9eb19ae2bf
commit e2315d295a

View 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;
}