/PHP-5.4/ext/spl/tests/ |
H A D | recursiveiteratoriterator_nextelement_basic.phpt | 11 $iterator = new RecursiveIteratorIterator($sub_iterator); 12 foreach ($iterator as $element) { 21 $iterator = new NextElementRecursiveIteratorIterator($sub_iterator); 22 foreach ($iterator as $element) {
|
H A D | spl_iterator_apply_error.phpt | 2 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 D | spl_iterator_to_array_error.phpt | 8 throw new Exception('Make the iterator break'); 32 Make the iterator break 33 Make the iterator break
|
H A D | arrayObject___construct_error1.phpt | 2 SPL: ArrayObject::__construct with bad iterator. 5 echo "Bad iterator type:\n"; 22 Bad iterator type:
|
H A D | bug49972.phpt | 6 $iterator = new AppendIterator(); 7 $iterator->undefined();
|
H A D | spl_iterator_to_array_basic.phpt | 2 SPL: iterator_to_array, Test function to convert iterator to array 9 iterator_to_array();//requires iterator as arg
|
H A D | DirectoryIterator_by_reference.phpt | 2 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 D | iterator_count.phpt | 10 $iterator = new ArrayIterator($array); 15 iterator_count($iterator,'1');
|
/PHP-5.4/Zend/ |
H A D | zend_interfaces.c | 278 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 D | spl_iterators.c | 217 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 D | spl_heap.c | 895 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 D | spl_fixedarray.c | 894 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 D | spl_dllist.c | 941 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 D | filteriterator.inc | 19 * 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 D | seekableiterator.inc | 12 /** @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 D | cachingiterator.inc | 18 * 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 D | outeriterator.inc | 13 * @brief Interface to access the current inner iteraor of iterator wrappers 20 /** @return inner iterator
|
H A D | appenditerator.inc | 33 * 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 D | exp_basic.phpt | 22 $iterator = 1; 24 echo "\n-- Iteration $iterator --\n"; 26 $iterator++;
|
H A D | expm1_basic.phpt | 30 $iterator = 1; 32 echo "\n-- Iteration $iterator --\n"; 34 $iterator++;
|
/PHP-5.4/ext/standard/tests/strings/ |
H A D | htmlspecialchars_decode_variation6.phpt | 25 $iterator = 1; 27 echo "-- Iteration $iterator --\n"; 28 if ($iterator < 4) { 34 $iterator++;
|
H A D | strval_basic.phpt | 42 $iterator = 1; 44 echo "\n-- Iteration $iterator --\n"; 46 $iterator++;
|
/PHP-5.4/Zend/tests/ |
H A D | bug60138.phpt | 8 $iterator = new RecursiveIteratorIterator( 12 foreach($iterator as $file);
|
/PHP-5.4/ext/mbstring/tests/ |
H A D | mb_encode_mimeheader_variation6.phpt | 29 $iterator = 1; 31 echo "\n-- Iteration $iterator --\n"; 33 $iterator++;
|
/PHP-5.4/ext/standard/tests/image/ |
H A D | image_type_to_mime_type_variation2.phpt | 34 $iterator = 1; 36 echo "\n-- Iteration $iterator --\n"; 38 $iterator++;
|