summaryrefslogtreecommitdiff
path: root/Zend/zend_iterators.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2010-08-08 22:43:14 +0000
committerFelipe Pena <felipe@php.net>2010-08-08 22:43:14 +0000
commit30470999fe43b495907dbf1c6748778d44e1337f (patch)
tree2f856c9fd1c54f5e87827a9613b43c5c96db445e /Zend/zend_iterators.c
parentc6c97db78ff1b010363739796d46d32721888fce (diff)
downloadphp-git-30470999fe43b495907dbf1c6748778d44e1337f.tar.gz
- Back the free() call for __iterator_wrapper to free the ce->name, as it is a fake class
Diffstat (limited to 'Zend/zend_iterators.c')
-rwxr-xr-xZend/zend_iterators.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_iterators.c b/Zend/zend_iterators.c
index ba6378d918..185baa1abd 100755
--- a/Zend/zend_iterators.c
+++ b/Zend/zend_iterators.c
@@ -51,6 +51,10 @@ static zend_object_handlers iterator_object_handlers = {
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)