Home
last modified time | relevance | path

Searched refs:iterator (Results 26 – 50 of 465) sorted by relevance

12345678910>>...19

/PHP-5.4/ext/spl/tests/
H A Drecursiveiteratoriterator_nextelement_basic.phpt11 $iterator = new RecursiveIteratorIterator($sub_iterator);
12 foreach ($iterator as $element) {
21 $iterator = new NextElementRecursiveIteratorIterator($sub_iterator);
22 foreach ($iterator as $element) {
H A Dspl_iterator_apply_error.phpt2 SPL: Error: iterator_apply when an iterator method (eg rewind) throws exception
8 throw new Exception('Make the iterator break');
26 Make the iterator break
H A Dspl_iterator_to_array_error.phpt8 throw new Exception('Make the iterator break');
32 Make the iterator break
33 Make the iterator break
H A DarrayObject___construct_error1.phpt2 SPL: ArrayObject::__construct with bad iterator.
5 echo "Bad iterator type:\n";
22 Bad iterator type:
H A Dbug49972.phpt6 $iterator = new AppendIterator();
7 $iterator->undefined();
H A Dspl_iterator_to_array_basic.phpt2 SPL: iterator_to_array, Test function to convert iterator to array
9 iterator_to_array();//requires iterator as arg
H A DDirectoryIterator_by_reference.phpt2 DirectoryIterator: test that you cannot use iterator with reference
14 Fatal error: An iterator cannot be used with foreach by reference in %s on line %d
H A Diterator_count.phpt10 $iterator = new ArrayIterator($array);
15 iterator_count($iterator,'1');
/PHP-5.4/Zend/
H A Dzend_interfaces.c278 zend_user_iterator *iterator; in zend_user_it_get_iterator() local
287 iterator->it.data = (void*)object; in zend_user_it_get_iterator()
289 iterator->ce = Z_OBJCE_P(object); in zend_user_it_get_iterator()
290 iterator->value = NULL; in zend_user_it_get_iterator()
291 return (zend_object_iterator*)iterator; in zend_user_it_get_iterator()
301 zend_class_entry *ce_it = iterator && Z_TYPE_P(iterator) == IS_OBJECT ? Z_OBJCE_P(iterator) : NULL; in zend_user_it_get_new_iterator()
307 if (iterator) { in zend_user_it_get_new_iterator()
308 zval_ptr_dtor(&iterator); in zend_user_it_get_new_iterator()
314 zval_ptr_dtor(&iterator); in zend_user_it_get_new_iterator()
524 ZEND_ABSTRACT_ME(iterator, current, NULL)
[all …]
/PHP-5.4/ext/spl/
H A Dspl_iterators.c217 iterator = object->iterators[object->level].iterator; in spl_recursive_it_move_forward_ex()
220 iterator->funcs->move_forward(iterator TSRMLS_CC); in spl_recursive_it_move_forward_ex()
230 if (iterator->funcs->valid(iterator TSRMLS_CC) == FAILURE) { in spl_recursive_it_move_forward_ex()
365 iterator->funcs->dtor(iterator TSRMLS_CC); in spl_recursive_it_move_forward_ex()
484 iterator = NULL; in spl_recursive_it_it_construct()
500 iterator = NULL; in spl_recursive_it_it_construct()
554 Z_ADDREF_P(iterator); in spl_recursive_it_it_construct()
651 iterator->funcs->get_current_data(iterator, &data TSRMLS_CC); in SPL_METHOD()
1027 iterator->funcs->get_current_data(iterator, &data TSRMLS_CC); in spl_recursive_tree_iterator_get_entry()
1130 iterator->funcs->get_current_data(iterator, &data TSRMLS_CC); in SPL_METHOD()
[all …]
H A Dspl_heap.c895 efree(iterator); in spl_heap_it_dtor()
1104 spl_heap_it *iterator; in spl_heap_get_iterator() local
1117 iterator->intern.ce = ce; in spl_heap_get_iterator()
1118 iterator->intern.value = NULL; in spl_heap_get_iterator()
1120 iterator->object = heap_object; in spl_heap_get_iterator()
1122 return (zend_object_iterator*)iterator; in spl_heap_get_iterator()
1128 spl_heap_it *iterator; in spl_pqueue_get_iterator() local
1141 iterator->intern.ce = ce; in spl_pqueue_get_iterator()
1142 iterator->intern.value = NULL; in spl_pqueue_get_iterator()
1144 iterator->object = heap_object; in spl_pqueue_get_iterator()
[all …]
H A Dspl_fixedarray.c894 efree(iterator); in spl_fixedarray_it_dtor()
906 iterator->object->current = 0; in spl_fixedarray_it_rewind()
920 …if (iterator->object->current >= 0 && iterator->object->array && iterator->object->current < itera… in spl_fixedarray_it_valid()
938 ZVAL_LONG(zindex, iterator->object->current); in spl_fixedarray_it_get_current_data()
959 *int_key = (ulong) iterator->object->current; in spl_fixedarray_it_get_current_key()
975 iterator->object->current++; in spl_fixedarray_it_move_forward()
1073 spl_fixedarray_it *iterator; in spl_fixedarray_get_iterator() local
1084 iterator->intern.it.data = (void*)object; in spl_fixedarray_get_iterator()
1086 iterator->intern.ce = ce; in spl_fixedarray_get_iterator()
1087 iterator->intern.value = NULL; in spl_fixedarray_get_iterator()
[all …]
H A Dspl_dllist.c941 efree(iterator); in spl_dllist_it_dtor()
1000 spl_dllist_object *object = iterator->object; in spl_dllist_it_rewind()
1003 …spl_dllist_it_helper_rewind(&iterator->traverse_pointer, &iterator->traverse_position, llist, obje… in spl_dllist_it_rewind()
1033 *int_key = (ulong) iterator->traverse_position; in spl_dllist_it_get_current_key()
1041 spl_dllist_object *object = iterator->object; in spl_dllist_it_move_forward()
1255 spl_dllist_it *iterator; in spl_dllist_get_iterator() local
1266 iterator->intern.it.data = (void*)object; in spl_dllist_get_iterator()
1268 iterator->intern.ce = ce; in spl_dllist_get_iterator()
1269 iterator->intern.value = NULL; in spl_dllist_get_iterator()
1273 iterator->object = dllist_object; in spl_dllist_get_iterator()
[all …]
/PHP-5.4/ext/spl/internal/
H A Dfilteriterator.inc19 * you can put an iterator into the constructor and the instance will only
31 * Constructs a filter around another iterator.
40 * Rewind the inner iterator.
48 * Accept function to decide whether an element of the inner iterator
52 * iterator.
109 * @return The inner iterator
116 /** Aggregate the inner iterator
H A Dseekableiterator.inc12 /** @brief seekable iterator
17 * Turns a normal iterator ino a seekable iterator. When there is a way
18 * to seek on an iterator LimitIterator can use this to efficiently rewind
H A Dcachingiterator.inc18 * This iterator wrapper does a one ahead iteration. This way it knows whether
19 * the inner iterator has one more element.
25 * already changed iterator. If you do not need this then it you should
41 /** Construct from another iterator
89 /** @return whether the iterator is valid
117 /** Aggregate the inner iterator
149 * @return The inner iterator
H A Douteriterator.inc13 * @brief Interface to access the current inner iteraor of iterator wrappers
20 /** @return inner iterator
H A Dappenditerator.inc33 * If the current state is invalid but the appended iterator is valid
74 * the access to a non valid element in the inner iterator. Since
100 return; /* found valid element in current inner iterator */
108 return; /* found element as first elemet in another iterator */
114 /** Aggregates the inner iterator
/PHP-5.4/ext/standard/tests/math/
H A Dexp_basic.phpt22 $iterator = 1;
24 echo "\n-- Iteration $iterator --\n";
26 $iterator++;
H A Dexpm1_basic.phpt30 $iterator = 1;
32 echo "\n-- Iteration $iterator --\n";
34 $iterator++;
/PHP-5.4/ext/standard/tests/strings/
H A Dhtmlspecialchars_decode_variation6.phpt25 $iterator = 1;
27 echo "-- Iteration $iterator --\n";
28 if ($iterator < 4) {
34 $iterator++;
H A Dstrval_basic.phpt42 $iterator = 1;
44 echo "\n-- Iteration $iterator --\n";
46 $iterator++;
/PHP-5.4/Zend/tests/
H A Dbug60138.phpt8 $iterator = new RecursiveIteratorIterator(
12 foreach($iterator as $file);
/PHP-5.4/ext/mbstring/tests/
H A Dmb_encode_mimeheader_variation6.phpt29 $iterator = 1;
31 echo "\n-- Iteration $iterator --\n";
33 $iterator++;
/PHP-5.4/ext/standard/tests/image/
H A Dimage_type_to_mime_type_variation2.phpt34 $iterator = 1;
36 echo "\n-- Iteration $iterator --\n";
38 $iterator++;

Completed in 47 milliseconds

12345678910>>...19