Searched defs:iterator (Results 1 - 21 of 21) sorted by relevance

/PHP_TRUNK/ext/intl/common/
H A Dcommon_enum.h45 if (ii->iterator == NULL) { \
52 zend_object_iterator *iterator; member in struct:__anon76
66 void (*destroy_it)(zend_object_iterator *iterator TSRMLS_DC);
/PHP_TRUNK/Zend/
H A Dzend_generators.h31 zend_object_iterator *iterator; member in struct:_zend_generator
H A Dzend_interfaces.c128 /* iterator interface, c-level functions used by engine */
259 zend_user_iterator *iterator; local
262 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
265 iterator = emalloc(sizeof(zend_user_iterator));
267 zend_iterator_init((zend_object_iterator*)iterator TSRMLS_CC);
269 ZVAL_COPY(&iterator->it.data, object);
270 iterator->it.funcs = ce->iterator_funcs.funcs;
271 iterator->ce = Z_OBJCE_P(object);
272 ZVAL_UNDEF(&iterator->value);
273 return (zend_object_iterator*)iterator;
280 zval iterator; local
[all...]
H A Dzend_generators.c190 if (generator->iterator) {
191 zend_iterator_dtor(generator->iterator TSRMLS_CC);
550 static void zend_generator_iterator_dtor(zend_object_iterator *iterator TSRMLS_DC) /* {{{ */
552 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data);
553 generator->iterator = NULL;
554 zval_ptr_dtor(&iterator->data);
555 zend_iterator_dtor(iterator TSRMLS_CC);
559 static int zend_generator_iterator_valid(zend_object_iterator *iterator TSRMLS_DC) /* {{{ */
561 zend_generator *generator = (zend_generator*)Z_OBJ(iterator->data);
569 static zval *zend_generator_iterator_get_data(zend_object_iterator *iterator TSRMLS_D
579 zend_generator_iterator_get_key(zend_object_iterator *iterator, zval *key TSRMLS_DC) argument
622 zend_object_iterator *iterator; local
[all...]
H A Dzend_vm_def.h4464 zval *array_ptr, *array_ref, iterator, tmp; variable
4576 ZVAL_OBJ(&iterator, &iter->std);
4577 array_ptr = array_ref = &iterator;
H A Dzend_vm_execute.h3078 zval *array_ptr, *array_ref, iterator, tmp; local
3190 ZVAL_OBJ(&iterator, &iter->std);
3191 array_ptr = array_ref = &iterator;
9830 zval *array_ptr, *array_ref, iterator, tmp; local
9942 ZVAL_OBJ(&iterator, &iter->std);
9943 array_ptr = array_ref = &iterator;
16508 zval *array_ptr, *array_ref, iterator, tmp; local
16620 ZVAL_OBJ(&iterator, &iter->std);
16621 array_ptr = array_ref = &iterator;
33912 zval *array_ptr, *array_ref, iterator, tmp; local
[all...]
/PHP_TRUNK/ext/dom/
H A Ddom_iterators.c127 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
129 zval_ptr_dtor(&iterator->intern.data);
130 zval_ptr_dtor(&iterator->curobj);
137 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
139 if (Z_TYPE(iterator->curobj) != IS_UNDEF) {
149 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
151 return &iterator->curobj;
157 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
158 zval *object = &iterator->intern.data;
163 dom_object *intern = Z_DOMOBJ_P(&iterator
186 php_dom_iterator *iterator = (php_dom_iterator *)iter; local
256 php_dom_iterator *iterator; local
[all...]
/PHP_TRUNK/ext/intl/resourcebundle/
H A Dresourcebundle_iterator.c26 * Although libicu offers iterator functions, they are not used here: libicu does iterate
32 static void resourcebundle_iterator_read( ResourceBundle_iterator *iterator TSRMLS_DC )
35 ResourceBundle_object *rb = iterator->subject;
37 rb->child = ures_getByIndex( rb->me, iterator->i, rb->child, &icuerror );
41 if (iterator->is_table) {
42 iterator->currentkey = estrdup( ures_getKey( rb->child ) );
44 resourcebundle_extract_value( &iterator->current, rb TSRMLS_CC );
48 ZVAL_UNDEF(&iterator->current);
56 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
58 if (!Z_ISUNDEF(iterator
72 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
84 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
92 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
103 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
120 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
130 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; local
153 ResourceBundle_iterator *iterator = emalloc( sizeof( ResourceBundle_iterator ) ); local
[all...]
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_result_iterator.c49 php_mysqli_result_iterator *iterator; local
52 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
54 iterator = ecalloc(1, sizeof(php_mysqli_result_iterator));
55 zend_iterator_init(&iterator->intern TSRMLS_CC);
57 ZVAL_COPY(&iterator->intern.data, object);
58 iterator->intern.funcs = &php_mysqli_result_iterator_funcs;
59 iterator->result = Z_MYSQLI_P(object);
60 iterator->row_num = -1;
62 return &iterator->intern;
69 php_mysqli_result_iterator *iterator local
80 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
89 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
99 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
116 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
142 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; local
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_iterators.h132 zend_object_iterator *iterator; member in struct:_spl_dual_it_object::__anon163
153 zend_object_iterator *iterator; member in struct:_spl_dual_it_object::__anon165::__anon168
H A Dspl_fixedarray.c853 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; local
856 zval_ptr_dtor(&iterator->intern.it.data);
1016 /* iterator handler table */
1028 spl_fixedarray_it *iterator; local
1031 zend_throw_exception(spl_ce_RuntimeException, "An iterator cannot be used with foreach by reference", 0 TSRMLS_CC);
1035 iterator = emalloc(sizeof(spl_fixedarray_it));
1037 zend_iterator_init((zend_object_iterator*)iterator TSRMLS_CC);
1039 ZVAL_COPY(&iterator->intern.it.data, object);
1040 iterator->intern.it.funcs = &spl_fixedarray_it_funcs;
1041 iterator
[all...]
H A Dspl_heap.c81 /* define an overloaded iterator structure */
907 spl_heap_it *iterator = (spl_heap_it *)iter; local
910 zval_ptr_dtor(&iterator->intern.it.data);
916 /* do nothing, the iterator always points to the top element */
1043 /* do nothing, the iterator always points to the top element */
1092 /* iterator handler table */
1113 spl_heap_it *iterator; local
1117 zend_throw_exception(spl_ce_RuntimeException, "An iterator cannot be used with foreach by reference", 0 TSRMLS_CC);
1121 iterator = emalloc(sizeof(spl_heap_it));
1123 zend_iterator_init(&iterator
1137 spl_heap_it *iterator; local
[all...]
H A Dspl_array.c254 /* Cache iterator functions if ArrayIterator or derived. Check current's */
1186 /* iterator handler table */
1198 zend_user_iterator *iterator; local
1202 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
1205 iterator = emalloc(sizeof(zend_user_iterator));
1207 zend_iterator_init(&iterator->it TSRMLS_CC);
1209 ZVAL_COPY(&iterator->it.data, object);
1210 iterator->it.funcs = &spl_array_it_funcs;
1211 iterator->ce = ce;
1212 ZVAL_UNDEF(&iterator
[all...]
H A Dspl_directory.c734 Cronstructs a new dir iterator from a path. */
1411 Cronstructs a new dir iterator from a path. */
1493 Returns an iterator for the current entry if it is a directory */
1574 Cronstructs a new dir iterator from a path. */
1583 Cronstructs a new dir iterator from a glob expression (no glob:// needed). */
1610 /* {{{ forward declarations to the iterator handlers */
1618 /* iterator handler table */
1632 spl_filesystem_iterator *iterator; local
1636 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
1639 iterator
1653 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1679 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1724 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1741 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1779 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1800 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; local
1831 spl_filesystem_iterator *iterator; local
[all...]
H A Dspl_dllist.c55 #define SPL_DLLIST_IT_DELETE 0x00000001 /* Delete flag makes the iterator delete the current element on next */
56 #define SPL_DLLIST_IT_LIFO 0x00000002 /* LIFO flag makes the iterator traverse the structure as a LastInFirstOut */
101 /* define an overloaded iterator structure */
914 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
916 SPL_LLIST_CHECK_DELREF(iterator->traverse_pointer);
919 zval_ptr_dtor(&iterator->intern.it.data);
975 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
979 spl_dllist_it_helper_rewind(&iterator->traverse_pointer, &iterator->traverse_position, llist, object->flags TSRMLS_CC);
985 spl_dllist_it *iterator local
994 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1007 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1015 spl_dllist_it *iterator = (spl_dllist_it *)iter; local
1285 spl_dllist_it *iterator; local
[all...]
H A Dspl_iterators.c97 zend_object_iterator *iterator; member in struct:_spl_sub_iterator
168 #define SPL_FETCH_SUB_ITERATOR(var, object) SPL_FETCH_SUB_ELEMENT(var, object, iterator)
178 sub_iter = object->iterators[object->level].iterator;
197 sub_iter = object->iterators[level].iterator;
218 zend_object_iterator *sub_iter = object->iterators[object->level].iterator;
226 zend_object_iterator *sub_iter = object->iterators[object->level].iterator;
237 zend_object_iterator *iterator; local
244 SPL_FETCH_SUB_ITERATOR(iterator, object);
248 iterator = object->iterators[object->level].iterator;
441 spl_recursive_it_iterator *iterator; local
474 zval *iterator; local
640 zend_object_iterator *iterator; local
660 zend_object_iterator *iterator; local
1055 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1202 zend_object_iterator *iterator = object->iterators[object->level].iterator; local
1248 zend_object_iterator *iterator; local
[all...]
H A Dspl_observer.c1028 /* {{{ proto void attachIterator(Iterator iterator[, mixed info]) throws InvalidArgumentException
1029 Attach a new iterator */
1033 zval *iterator = NULL, *info = NULL; local
1035 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O|z!", &iterator, zend_ce_iterator, &info) == FAILURE) {
1061 spl_object_storage_attach(intern, getThis(), iterator, info TSRMLS_CC);
1066 Rewind all attached iterator instances */
1089 Move all attached iterator instances forward */
1112 Return whether all or one sub iterator is valid depending on flags */
1187 zend_throw_exception(spl_ce_RuntimeException, "Failed to call sub iterator method", 0 TSRMLS_CC);
1192 zend_throw_exception(spl_ce_RuntimeException, "Called current() with non valid sub iterator",
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_frame.c132 HashPosition iterator; local
139 zend_hash_internal_pointer_reset_ex(Z_ARRVAL_PP(args), &iterator); local
141 (void **) &argstmp, &iterator) == SUCCESS) {
155 zend_hash_move_forward_ex(Z_ARRVAL_PP(args), &iterator); local
/PHP_TRUNK/ext/simplexml/
H A Dsimplexml.c2012 /* dtor required to cleanup iterator related data properly */
2289 php_sxe_iterator *iterator; local
2292 zend_error(E_ERROR, "An iterator cannot be used with foreach by reference");
2294 iterator = emalloc(sizeof(php_sxe_iterator));
2295 zend_iterator_init(&iterator->intern TSRMLS_CC);
2297 ZVAL_COPY(&iterator->intern.data, object);
2298 iterator->intern.funcs = &php_sxe_iterator_funcs;
2299 iterator->sxe = Z_SXEOBJ_P(object);
2301 return (zend_object_iterator*)iterator;
2307 php_sxe_iterator *iterator local
2318 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2326 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2334 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2371 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
2380 php_sxe_iterator *iterator = (php_sxe_iterator *)iter; local
[all...]
/PHP_TRUNK/ext/date/
H A Dphp_date.c1846 /* define an overloaded iterator structure */
1857 date_period_it *iterator = (date_period_it *)iter; local
1859 if (Z_TYPE(iterator->current) != IS_UNDEF) {
1860 zval_ptr_dtor(&iterator->current);
1861 ZVAL_UNDEF(&iterator->current);
1869 date_period_it *iterator = (date_period_it *)iter; local
1873 zval_ptr_dtor(&iterator->intern.data);
1880 date_period_it *iterator = (date_period_it *)iter; local
1881 php_period_obj *object = Z_PHPPERIOD_P(&iterator->intern.data);
1885 if (!object->include_start_date || iterator
1904 date_period_it *iterator = (date_period_it *)iter; local
1928 date_period_it *iterator = (date_period_it *)iter; local
1936 date_period_it *iterator = (date_period_it *)iter; local
1946 date_period_it *iterator = (date_period_it *)iter; local
1970 date_period_it *iterator = emalloc(sizeof(date_period_it)); local
[all...]
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c1097 HashPosition iterator; local
1101 zend_hash_internal_pointer_reset_ex(CG(function_table), &iterator); local
1102 while ((fptr = zend_hash_get_current_data_ptr_ex(CG(function_table), &iterator)) != NULL) {
1111 zend_hash_move_forward_ex(CG(function_table), &iterator); local
5218 HashPosition iterator; local
5228 zend_hash_internal_pointer_reset_ex(CG(function_table), &iterator); local
5229 while ((fptr = zend_hash_get_current_data_ptr_ex(CG(function_table), &iterator)) != NULL) {
5235 zend_hash_move_forward_ex(CG(function_table), &iterator); local

Completed in 111 milliseconds