laruence Sat, 17 Dec 2011 03:57:01 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=321083
Log: Reduce memory usage Changed paths: U php/php-src/branches/PHP_5_4/Zend/zend_object_handlers.c U php/php-src/trunk/Zend/zend_object_handlers.c Modified: php/php-src/branches/PHP_5_4/Zend/zend_object_handlers.c =================================================================== --- php/php-src/branches/PHP_5_4/Zend/zend_object_handlers.c 2011-12-17 01:26:39 UTC (rev 321082) +++ php/php-src/branches/PHP_5_4/Zend/zend_object_handlers.c 2011-12-17 03:57:01 UTC (rev 321083) @@ -62,7 +62,7 @@ ALLOC_HASHTABLE(zobj->properties); zend_hash_init(zobj->properties, 0, NULL, ZVAL_PTR_DTOR, 0); if (ce->default_properties_count) { - int *flags = ecalloc(ce->default_properties_count, sizeof(int)); + char *flags = ecalloc(ce->default_properties_count, sizeof(char)); for (zend_hash_internal_pointer_reset_ex(&ce->properties_info, &pos); zend_hash_get_current_data_ex(&ce->properties_info, (void**)&prop_info, &pos) == SUCCESS; zend_hash_move_forward_ex(&ce->properties_info, &pos)) { Modified: php/php-src/trunk/Zend/zend_object_handlers.c =================================================================== --- php/php-src/trunk/Zend/zend_object_handlers.c 2011-12-17 01:26:39 UTC (rev 321082) +++ php/php-src/trunk/Zend/zend_object_handlers.c 2011-12-17 03:57:01 UTC (rev 321083) @@ -62,7 +62,7 @@ ALLOC_HASHTABLE(zobj->properties); zend_hash_init(zobj->properties, 0, NULL, ZVAL_PTR_DTOR, 0); if (ce->default_properties_count) { - int *flags = ecalloc(ce->default_properties_count, sizeof(int)); + char *flags = ecalloc(ce->default_properties_count, sizeof(char)); for (zend_hash_internal_pointer_reset_ex(&ce->properties_info, &pos); zend_hash_get_current_data_ex(&ce->properties_info, (void**)&prop_info, &pos) == SUCCESS; zend_hash_move_forward_ex(&ce->properties_info, &pos)) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php