/PHP-8.0/ext/intl/resourcebundle/ |
H A D | resourcebundle_iterator.c | 39 if (iterator->is_table) { in resourcebundle_iterator_read() 60 if (iterator->currentkey) { in resourcebundle_iterator_invalidate() 62 iterator->currentkey = NULL; in resourcebundle_iterator_invalidate() 83 return (iterator->i < iterator->length) ? SUCCESS : FAILURE; in resourcebundle_iterator_has_more() 94 return &iterator->current; in resourcebundle_iterator_current() 107 if (iterator->is_table) { in resourcebundle_iterator_key() 120 iterator->i++; in resourcebundle_iterator_step() 130 iterator->i = 0; in resourcebundle_iterator_reset() 163 iterator->subject = rb; in resourcebundle_get_iterator() 172 iterator->currentkey = NULL; in resourcebundle_get_iterator() [all …]
|
/PHP-8.0/ext/mysqli/ |
H A D | mysqli_result_iterator.c | 45 php_mysqli_result_iterator *iterator; in php_mysqli_result_get_iterator() local 53 zend_iterator_init(&iterator->intern); in php_mysqli_result_get_iterator() 58 iterator->result = Z_MYSQLI_P(object); in php_mysqli_result_get_iterator() 59 iterator->row_num = -1; in php_mysqli_result_get_iterator() 61 return &iterator->intern; in php_mysqli_result_get_iterator() 71 zval_ptr_dtor(&iterator->intern.data); in php_mysqli_result_iterator_dtor() 72 zval_ptr_dtor(&iterator->current_row); in php_mysqli_result_iterator_dtor() 90 return &iterator->current_row; in php_mysqli_result_iterator_current_data() 107 iterator->row_num++; in php_mysqli_result_iterator_move_forward() 133 iterator->row_num = -1; [all …]
|
/PHP-8.0/ext/intl/common/ |
H A D | common_enum.cpp | 148 ii->iterator->index = 0; in IntlIterator_from_StringEnumeration() 158 if (ii->iterator) { in IntlIterator_objects_free() 179 if (ii->iterator == NULL) { in IntlIterator_get_iterator() 187 return ii->iterator; in IntlIterator_get_iterator() 200 intern->iterator = NULL; in IntlIterator_object_create() 217 data = ii->iterator->funcs->get_current_data(ii->iterator); in PHP_METHOD() 234 ii->iterator->funcs->get_current_key(ii->iterator, return_value); in PHP_METHOD() 249 ii->iterator->funcs->move_forward(ii->iterator); in PHP_METHOD() 252 ii->iterator->index++; in PHP_METHOD() 265 ii->iterator->funcs->rewind(ii->iterator); in PHP_METHOD() [all …]
|
/PHP-8.0/ext/spl/tests/ |
H A D | recursiveiteratoriterator_getsubiterator_variation_003.phpt | 10 $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($sample_array)); 12 $iterator->next(); 13 $iterator->next(); 14 $iterator->next(); 15 var_dump($iterator->getSubIterator(-1)); 16 var_dump($iterator->getSubIterator(0)->getArrayCopy()); 17 var_dump($iterator->getSubIterator(1)->getArrayCopy()); 18 var_dump($iterator->getSubIterator(2));
|
H A D | recursiveiteratoriterator_getsubiterator_variation.phpt | 10 $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($sample_array)); 12 $iterator->next(); 13 $iterator->next(); 14 var_dump(get_class($iterator->getSubIterator())); 15 var_dump($iterator->getSubIterator()->getArrayCopy()); 16 $iterator->next(); 17 var_dump(get_class($iterator->getSubIterator())); 18 var_dump($iterator->getSubIterator()->getArrayCopy());
|
H A D | bug77263.phpt | 19 $iterator = new RecursiveDirectoryIterator($dir, FilesystemIterator::SKIP_DOTS ); 21 $iterator = new Filter1( $iterator ); 23 $iterator = new Filter2( $iterator ); 25 $iterator = new RecursiveIteratorIterator( $iterator, RecursiveIteratorIterator::LEAVES_ONLY, Recur… 27 foreach ( $iterator as $item ) {
|
H A D | bug74519.phpt | 6 $iterator = new \AppendIterator(); 8 $iterator->append($events); 12 while($iterator->valid()) { 13 echo $iterator->current(), "\n"; 14 $iterator->next();
|
H A D | recursiveiteratoriterator_getsubiterator_variation_002.phpt | 10 $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($sample_array)); 12 $iterator->next(); 13 var_dump(is_null($iterator->getSubIterator())); 14 $iterator->next(); 15 var_dump(is_null($iterator->getSubIterator()));
|
H A D | SplFixedArray_override_getIterator.phpt | 9 $iterator = parent::getIterator(); 10 while ($iterator->valid()) { 11 echo "In A: key={$iterator->key()} value={$iterator->current()}\n"; 12 yield $iterator->key() => $iterator->current(); 13 $iterator->next();
|
H A D | heap_009.phpt | 2 SPL: SplHeap and friends, throw: An iterator cannot be used with foreach by reference 49 An iterator cannot be used with foreach by reference 50 An iterator cannot be used with foreach by reference 51 An iterator cannot be used with foreach by reference 52 An iterator cannot be used with foreach by reference 53 An iterator cannot be used with foreach by reference 54 An iterator cannot be used with foreach by reference
|
H A D | recursiveiteratoriterator_getsubiterator_basic.phpt | 2 SPL: RecursiveIteratorIterator::getSubIterator() returns iterator passed in constructor 12 $iterator = new RecursiveIteratorIterator($sub_iterator); 14 var_dump($iterator->getSubIterator() === $sub_iterator); 15 var_dump($iterator->getSubIterator() === $not_sub_iterator);
|
/PHP-8.0/ext/dom/ |
H A D | dom_iterators.c | 129 zval_ptr_dtor(&iterator->intern.data); in php_dom_iterator_dtor() 130 zval_ptr_dtor(&iterator->curobj); in php_dom_iterator_dtor() 151 return &iterator->curobj; in php_dom_iterator_current_data() 189 object = &iterator->intern.data; in php_dom_iterator_move_forward() 202 zval_ptr_dtor(&iterator->curobj); in php_dom_iterator_move_forward() 203 ZVAL_UNDEF(&iterator->curobj); in php_dom_iterator_move_forward() 237 zval_ptr_dtor(&iterator->curobj); in php_dom_iterator_move_forward() 238 ZVAL_UNDEF(&iterator->curobj); in php_dom_iterator_move_forward() 265 php_dom_iterator *iterator; in php_dom_get_iterator() local 277 ZVAL_UNDEF(&iterator->curobj); in php_dom_get_iterator() [all …]
|
/PHP-8.0/ext/spl/ |
H A D | spl_iterators.stub.php | 25 public function __construct(Iterator $iterator, callable $callback) {} argument 33 public function __construct(RecursiveIterator $iterator, callable $callback) {} argument 118 public function __construct(Traversable $iterator, ?string $class = null) {} argument 144 public function __construct(Iterator $iterator) {} argument 155 public function __construct(RecursiveIterator $iterator) {} argument 166 public function __construct(RecursiveIterator $iterator) {} argument 269 public function __construct(Iterator $iterator) {} argument 292 public function append(Iterator $iterator) {} argument 315 public function __construct(Iterator $iterator) {} argument 369 /** @param RecursiveIterator|IteratorAggregate $iterator */ [all …]
|
/PHP-8.0/ext/date/tests/ |
H A D | DatePeriod_no_advance_on_valid.phpt | 10 $iterator = $period->getIterator(); 12 foreach ($iterator as $item) { 18 foreach ($iterator as $item) { 19 $iterator->valid(); 24 $iterator = $period->getIterator(); 28 foreach ($iterator as $item) { 34 foreach ($iterator as $item) { 35 $iterator->valid();
|
/PHP-8.0/Zend/tests/ |
H A D | bug71154.phpt | 2 Bug #71154: Incorrect HT iterator invalidation causes iterator reuse 8 /* Free array, causing free of iterator */ 10 /* Reuse the iterator.
|
/PHP-8.0/ext/ctype/tests/ |
H A D | ctype_alnum_variation4.phpt | 19 $iterator = 1; 21 echo "-- Iteration $iterator --\n"; 23 $iterator++; 27 $iterator = 1; 29 echo "-- Iteration $iterator --\n"; 31 $iterator++;
|
H A D | ctype_alpha_variation4.phpt | 19 $iterator = 1; 21 echo "-- Iteration $iterator --\n"; 23 $iterator++; 27 $iterator = 1; 29 echo "-- Iteration $iterator --\n"; 31 $iterator++;
|
H A D | ctype_cntrl_variation4.phpt | 19 $iterator = 1; 21 echo "-- Iteration $iterator --\n"; 23 $iterator++; 27 $iterator = 1; 29 echo "-- Iteration $iterator --\n"; 31 $iterator++;
|
H A D | ctype_graph_variation4.phpt | 19 $iterator = 1; 21 echo "-- Iteration $iterator --\n"; 23 $iterator++; 27 $iterator = 1; 29 echo "-- Iteration $iterator --\n"; 31 $iterator++;
|
H A D | ctype_lower_variation4.phpt | 19 $iterator = 1; 21 echo "-- Iteration $iterator --\n"; 23 $iterator++; 27 $iterator = 1; 29 echo "-- Iteration $iterator --\n"; 31 $iterator++;
|
H A D | ctype_print_variation4.phpt | 19 $iterator = 1; 21 echo "-- Iteration $iterator --\n"; 23 $iterator++; 27 $iterator = 1; 29 echo "-- Iteration $iterator --\n"; 31 $iterator++;
|
H A D | ctype_punct_variation4.phpt | 19 $iterator = 1; 21 echo "-- Iteration $iterator --\n"; 23 $iterator++; 27 $iterator = 1; 29 echo "-- Iteration $iterator --\n"; 31 $iterator++;
|
H A D | ctype_upper_variation4.phpt | 18 $iterator = 1; 20 echo "-- Iteration $iterator --\n"; 22 $iterator++; 26 $iterator = 1; 28 echo "-- Iteration $iterator --\n"; 30 $iterator++;
|
H A D | ctype_digit_variation4.phpt | 19 $iterator = 1; 21 echo "-- Iteration $iterator --\n"; 23 $iterator++; 27 $iterator = 1; 29 echo "-- Iteration $iterator --\n"; 31 $iterator++;
|
H A D | ctype_space_variation4.phpt | 19 $iterator = 1; 21 echo "-- Iteration $iterator --\n"; 23 $iterator++; 27 $iterator = 1; 29 echo "-- Iteration $iterator --\n"; 31 $iterator++;
|