/PHP-7.3/ext/intl/resourcebundle/ |
H A D | resourcebundle_iterator.c | 41 if (iterator->is_table) { in resourcebundle_iterator_read() 62 if (iterator->currentkey) { in resourcebundle_iterator_invalidate() 64 iterator->currentkey = NULL; in resourcebundle_iterator_invalidate() 85 return (iterator->i < iterator->length) ? SUCCESS : FAILURE; in resourcebundle_iterator_has_more() 96 return &iterator->current; in resourcebundle_iterator_current() 109 if (iterator->is_table) { in resourcebundle_iterator_key() 122 iterator->i++; in resourcebundle_iterator_step() 132 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-7.3/ext/mysqli/ |
H A D | mysqli_result_iterator.c | 47 php_mysqli_result_iterator *iterator; in php_mysqli_result_get_iterator() local 53 zend_iterator_init(&iterator->intern); in php_mysqli_result_get_iterator() 57 iterator->result = Z_MYSQLI_P(object); in php_mysqli_result_get_iterator() 58 iterator->row_num = -1; in php_mysqli_result_get_iterator() 60 return &iterator->intern; in php_mysqli_result_get_iterator() 70 zval_ptr_dtor(&iterator->intern.data); in php_mysqli_result_iterator_dtor() 71 zval_ptr_dtor(&iterator->current_row); in php_mysqli_result_iterator_dtor() 89 return &iterator->current_row; in php_mysqli_result_iterator_current_data() 106 iterator->row_num++; in php_mysqli_result_iterator_move_forward() 132 iterator->row_num = -1; [all …]
|
/PHP-7.3/ext/spl/internal/ |
H A D | iteratoriterator.inc | 44 * @param iterator inner iterator 51 $iterator = $iterator->getIterator(); 53 if ($iterator instanceof Iterator) 55 $this->iterator = $iterator; 67 return $this->iterator; 74 return $this->iterator->valid(); 81 return $this->iterator->key(); 95 return $this->iterator->next(); 102 return $this->iterator->rewind(); 105 /** Aggregate the inner iterator [all …]
|
/PHP-7.3/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 | heap_009.phpt | 2 SPL: SplHeap and friends, throw: 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 55 An iterator cannot be used with foreach by reference
|
H A D | recursiveiteratoriterator_getsubiterator_error.phpt | 8 $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator(array())); 9 $iterator->getSubIterator(); 10 $iterator->getSubIterator(0); 11 $iterator->getSubIterator(0, 0);
|
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);
|
H A D | bug42654.phpt | 12 $iterator = new RecursiveIteratorIterator(new 14 foreach($iterator as $foo) { 15 $key = $iterator->key(); 17 var_dump($iterator->getInnerIterator()); 18 $iterator->offsetSet($key, 'alter'); 19 var_dump($iterator->getInnerIterator()); 21 $copy = $iterator->getArrayCopy();
|
H A D | recursiveiteratoriterator_beginiteration_basic.phpt | 11 $iterator = new RecursiveIteratorIterator($sub_iterator); 12 foreach ($iterator as $element) { 22 $iterator = new SkipsFirstElementRecursiveIteratorIterator($sub_iterator); 23 foreach ($iterator as $element) {
|
/PHP-7.3/ext/intl/common/ |
H A D | common_enum.cpp | 149 ii->iterator->index = 0; in IntlIterator_from_StringEnumeration() 159 if (ii->iterator) { in IntlIterator_objects_free() 180 if (ii->iterator == NULL) { in IntlIterator_get_iterator() 188 return ii->iterator; in IntlIterator_get_iterator() 201 intern->iterator = NULL; in IntlIterator_object_create() 220 data = ii->iterator->funcs->get_current_data(ii->iterator); in PHP_METHOD() 239 ii->iterator->funcs->get_current_key(ii->iterator, return_value); in PHP_METHOD() 256 ii->iterator->funcs->move_forward(ii->iterator); in PHP_METHOD() 259 ii->iterator->index++; in PHP_METHOD() 274 ii->iterator->funcs->rewind(ii->iterator); in PHP_METHOD() [all …]
|
/PHP-7.3/ext/dom/ |
H A D | dom_iterators.c | 131 zval_ptr_dtor(&iterator->intern.data); in php_dom_iterator_dtor() 132 zval_ptr_dtor(&iterator->curobj); in php_dom_iterator_dtor() 153 return &iterator->curobj; in php_dom_iterator_current_data() 191 object = &iterator->intern.data; in php_dom_iterator_move_forward() 204 zval_ptr_dtor(&iterator->curobj); in php_dom_iterator_move_forward() 205 ZVAL_UNDEF(&iterator->curobj); in php_dom_iterator_move_forward() 239 zval_ptr_dtor(&iterator->curobj); in php_dom_iterator_move_forward() 240 ZVAL_UNDEF(&iterator->curobj); in php_dom_iterator_move_forward() 266 php_dom_iterator *iterator; in php_dom_get_iterator() local 278 ZVAL_UNDEF(&iterator->curobj); in php_dom_get_iterator() [all …]
|
/PHP-7.3/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-7.3/ext/ctype/tests/ |
H A D | ctype_alpha_variation4.phpt | 24 $iterator = 1; 26 echo "-- Iteration $iterator --\n"; 28 $iterator++; 32 $iterator = 1; 34 echo "-- Iteration $iterator --\n"; 36 $iterator++;
|
H A D | ctype_cntrl_variation4.phpt | 24 $iterator = 1; 26 echo "-- Iteration $iterator --\n"; 28 $iterator++; 32 $iterator = 1; 34 echo "-- Iteration $iterator --\n"; 36 $iterator++;
|
H A D | ctype_graph_variation4.phpt | 24 $iterator = 1; 26 echo "-- Iteration $iterator --\n"; 28 $iterator++; 32 $iterator = 1; 34 echo "-- Iteration $iterator --\n"; 36 $iterator++;
|
H A D | ctype_lower_variation4.phpt | 24 $iterator = 1; 26 echo "-- Iteration $iterator --\n"; 28 $iterator++; 32 $iterator = 1; 34 echo "-- Iteration $iterator --\n"; 36 $iterator++;
|
H A D | ctype_print_variation4.phpt | 24 $iterator = 1; 26 echo "-- Iteration $iterator --\n"; 28 $iterator++; 32 $iterator = 1; 34 echo "-- Iteration $iterator --\n"; 36 $iterator++;
|
H A D | ctype_alnum_variation4.phpt | 24 $iterator = 1; 26 echo "-- Iteration $iterator --\n"; 28 $iterator++; 32 $iterator = 1; 34 echo "-- Iteration $iterator --\n"; 36 $iterator++;
|
H A D | ctype_digit_variation4.phpt | 24 $iterator = 1; 26 echo "-- Iteration $iterator --\n"; 28 $iterator++; 32 $iterator = 1; 34 echo "-- Iteration $iterator --\n"; 36 $iterator++;
|
H A D | ctype_upper_variation4.phpt | 23 $iterator = 1; 25 echo "-- Iteration $iterator --\n"; 27 $iterator++; 31 $iterator = 1; 33 echo "-- Iteration $iterator --\n"; 35 $iterator++;
|
H A D | ctype_punct_variation4.phpt | 25 $iterator = 1; 27 echo "-- Iteration $iterator --\n"; 29 $iterator++; 33 $iterator = 1; 35 echo "-- Iteration $iterator --\n"; 37 $iterator++;
|