svn: /php/php-src/trunk/Zend/ zend_iterators.c

From: Date: Sun, 08 Aug 2010 22:43:14 +0000
Subject: svn: /php/php-src/trunk/Zend/ zend_iterators.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-63241@lists.php.net to get a copy of this message
felipe Sun, 08 Aug 2010 22:43:14 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=302010 Log: - Back the free() call for __iterator_wrapper to free the ce->name, as it is a fake class Changed paths: U php/php-src/trunk/Zend/zend_iterators.c Modified: php/php-src/trunk/Zend/zend_iterators.c =================================================================== --- php/php-src/trunk/Zend/zend_iterators.c 2010-08-08 21:47:33 UTC (rev 302009) +++ php/php-src/trunk/Zend/zend_iterators.c 2010-08-08 22:43:14 UTC (rev 302010) @@ -51,6 +51,10 @@ ZEND_API void zend_register_iterator_wrapper(TSRMLS_D) { INIT_CLASS_ENTRY(zend_iterator_class_entry, "__iterator_wrapper", NULL); + if (!IS_INTERNED(zend_iterator_class_entry.name)) { + free(zend_iterator_class_entry.name); + } + zend_iterator_class_entry.name = "__iterator_wrapper"; } static void iter_wrapper_dtor(void *object, zend_object_handle handle TSRMLS_DC)

« previous php.cvs (#63241) next »