rasmus Sun, 07 Aug 2011 00:01:17 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=314387
Log:
Use property_info.name here instead since *name might be free'ed at this point
@dmitry please review
Changed paths:
U php/php-src/branches/PHP_5_4/Zend/zend_API.c
U php/php-src/trunk/Zend/zend_API.c
Modified: php/php-src/branches/PHP_5_4/Zend/zend_API.c
===================================================================
--- php/php-src/branches/PHP_5_4/Zend/zend_API.c 2011-08-06 23:42:52 UTC
(rev 314386)
+++ php/php-src/branches/PHP_5_4/Zend/zend_API.c 2011-08-07 00:01:17 UTC
(rev 314387)
@@ -3378,7 +3378,7 @@
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;
}
Modified: php/php-src/trunk/Zend/zend_API.c
===================================================================
--- php/php-src/trunk/Zend/zend_API.c 2011-08-06 23:42:52 UTC (rev 314386)
+++ php/php-src/trunk/Zend/zend_API.c 2011-08-07 00:01:17 UTC (rev 314387)
@@ -3378,7 +3378,7 @@
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;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php