summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2011-08-07 00:01:17 +0000
committerRasmus Lerdorf <rasmus@php.net>2011-08-07 00:01:17 +0000
commite2315d295a10346d30e99d92d04bfca09513245c (patch)
treefd6d33bf37a13635237c661ba2bb319f0ba57bbc /Zend/zend_API.c
parent9eb19ae2bfa17a21cfe85f6e1668a593ba1787c0 (diff)
downloadphp-git-e2315d295a10346d30e99d92d04bfca09513245c.tar.gz
Use property_info.name here instead since *name might be free'ed at this point
@dmitry please review
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index fb49767e03..18aae835fd 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -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;
}