mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Use property_info.name here instead since *name might be free'ed at this point
@dmitry please review
This commit is contained in:
parent
9eb19ae2bf
commit
e2315d295a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue