Browse Source

- Back the free() call for __iterator_wrapper to free the ce->name, as it is a fake class

experimental/with_scalar_types
Felipe Pena 16 years ago
parent
commit
30470999fe
  1. 4
      Zend/zend_iterators.c

4
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)

Loading…
Cancel
Save