cvs: ZendEngine2 / zend.h zend_API.h zend_compile.c zend_iterators.h

From: Date: Sat, 18 Oct 2003 18:43:01 +0000
Subject: cvs: ZendEngine2 / zend.h zend_API.h zend_compile.c zend_iterators.h
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1921@lists.php.net to get a copy of this message
helly Sat Oct 18 14:43:01 2003 EDT Modified files: /ZendEngine2 zend.h zend_API.h zend_compile.c zend_iterators.h Log: Fix class/iterator relationship & handling Index: ZendEngine2/zend.h diff -u ZendEngine2/zend.h:1.227 ZendEngine2/zend.h:1.228 --- ZendEngine2/zend.h:1.227 Fri Oct 17 13:19:44 2003 +++ ZendEngine2/zend.h Sat Oct 18 14:43:00 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend.h,v 1.227 2003/10/17 17:19:44 helly Exp $ */ +/* $Id: zend.h,v 1.228 2003/10/18 18:43:00 helly Exp $ */ #ifndef ZEND_H #define ZEND_H @@ -333,7 +333,7 @@ union _zend_function *__set; union _zend_function *__call; - zend_class_iterator_funcs *iterator_funcs; + zend_class_iterator_funcs iterator_funcs; /* handlers */ zend_object_value (*create_object)(zend_class_entry *class_type TSRMLS_DC); Index: ZendEngine2/zend_API.h diff -u ZendEngine2/zend_API.h:1.165 ZendEngine2/zend_API.h:1.166 --- ZendEngine2/zend_API.h:1.165 Fri Oct 17 13:19:44 2003 +++ ZendEngine2/zend_API.h Sat Oct 18 14:43:00 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_API.h,v 1.165 2003/10/17 17:19:44 helly Exp $ */ +/* $Id: zend_API.h,v 1.166 2003/10/18 18:43:00 helly Exp $ */ #ifndef ZEND_API_H #define ZEND_API_H @@ -126,7 +126,7 @@ class_container.__set = handle_propset; \ class_container.num_interfaces = 0; \ class_container.get_iterator = NULL; \ - class_container.iterator_funcs = NULL; \ + class_container.iterator_funcs.funcs = NULL; \ } int zend_next_free_module(void); Index: ZendEngine2/zend_compile.c diff -u ZendEngine2/zend_compile.c:1.486 ZendEngine2/zend_compile.c:1.487 --- ZendEngine2/zend_compile.c:1.486 Thu Oct 9 09:44:44 2003 +++ ZendEngine2/zend_compile.c Sat Oct 18 14:43:00 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_compile.c,v 1.486 2003/10/09 13:44:44 zeev Exp $ */ +/* $Id: zend_compile.c,v 1.487 2003/10/18 18:43:00 helly Exp $ */ #include "zend_language_parser.h" #include "zend.h" @@ -1608,6 +1608,12 @@ ce->create_object = ce->parent->create_object; /* Inherit special functions if needed */ + if (!ce->get_iterator) { + ce->get_iterator = ce->parent->get_iterator; + } + if (!ce->iterator_funcs.funcs) { + ce->iterator_funcs.funcs = ce->parent->iterator_funcs.funcs; + } if (!ce->__get) { ce->__get = ce->parent->__get; } Index: ZendEngine2/zend_iterators.h diff -u ZendEngine2/zend_iterators.h:1.2 ZendEngine2/zend_iterators.h:1.3 --- ZendEngine2/zend_iterators.h:1.2 Sat Oct 18 10:56:47 2003 +++ ZendEngine2/zend_iterators.h Sat Oct 18 14:43:00 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_iterators.h,v 1.2 2003/10/18 14:56:47 helly Exp $ */ +/* $Id: zend_iterators.h,v 1.3 2003/10/18 18:43:00 helly Exp $ */ /* These iterators were designed to operate within the foreach() * structures provided by the engine, but could be extended for use @@ -56,7 +56,7 @@ typedef zval *(*zend_object_new_iterator_t)(zend_class_entry *ce, zval *object TSRMLS_DC); typedef struct _zend_class_iterator_funcs { - zend_object_iterator_funcs funcs; + zend_object_iterator_funcs *funcs; zend_object_new_iterator_t new_iterator; union _zend_function *zf_new_iterator; union _zend_function *zf_has_more;

« previous php.zend-engine.cvs (#1921) next »