/php-src/ext/intl/breakiterator/ |
H A D | breakiterator_iterators.cpp | 53 zval_ptr_dtor(&iter->data); in _breakiterator_destroy_it() 61 iter->funcs->invalidate_current(iter); in _breakiterator_move_forward() 135 zval_ptr_dtor(&iter->data); in _breakiterator_parts_destroy_it() 148 ZVAL_LONG(key, iter->index); in _breakiterator_parts_get_current_key() 157 iter->funcs->invalidate_current(iter); in _breakiterator_parts_move_forward() 172 iter->index = cur; in _breakiterator_parts_move_forward() 174 iter->index = next; in _breakiterator_parts_move_forward() 198 iter->funcs->invalidate_current(iter); in _breakiterator_parts_rewind() 203 iter->funcs->move_forward(iter); in _breakiterator_parts_rewind() 264 zval *iter = &ii->iterator->data; in PHP_METHOD() local [all …]
|
/php-src/ext/zend_test/ |
H A D | iterators.c | 34 return (test_traversable_it *)iter; in test_traversable_it_fetch() 37 static void test_traversable_it_dtor(zend_object_iterator *iter) { in test_traversable_it_dtor() argument 39 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_dtor() 43 static void test_traversable_it_rewind(zend_object_iterator *iter) { in test_traversable_it_rewind() argument 45 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_rewind() 49 static void test_traversable_it_next(zend_object_iterator *iter) { in test_traversable_it_next() argument 51 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_next() 57 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_valid() 66 test_traversable_it *iterator = test_traversable_it_fetch(iter); in test_traversable_it_key() 70 static zval *test_traversable_it_current(zend_object_iterator *iter) { in test_traversable_it_current() argument [all …]
|
/php-src/Zend/ |
H A D | zend_iterators.c | 65 zend_object_iterator *iter = (zend_object_iterator*)object; in iter_wrapper_free() local 66 iter->funcs->dtor(iter); in iter_wrapper_free() 74 zend_object_iterator *iter = (zend_object_iterator*)object; in iter_wrapper_get_gc() local 75 if (iter->funcs->get_gc) { in iter_wrapper_get_gc() 76 return iter->funcs->get_gc(iter, table, n); in iter_wrapper_get_gc() 84 ZEND_API void zend_iterator_init(zend_object_iterator *iter) in zend_iterator_init() argument 86 zend_object_std_init(&iter->std, &zend_iterator_class_entry); in zend_iterator_init() 89 ZEND_API void zend_iterator_dtor(zend_object_iterator *iter) in zend_iterator_dtor() argument 91 if (GC_DELREF(&iter->std) > 0) { in zend_iterator_dtor() 95 zend_objects_store_del(&iter->std); in zend_iterator_dtor()
|
H A D | zend_iterators.h | 36 void (*dtor)(zend_object_iterator *iter); 39 zend_result (*valid)(zend_object_iterator *iter); 42 zval *(*get_current_data)(zend_object_iterator *iter); 48 void (*get_current_key)(zend_object_iterator *iter, zval *key); 51 void (*move_forward)(zend_object_iterator *iter); 54 void (*rewind)(zend_object_iterator *iter); 57 void (*invalidate_current)(zend_object_iterator *iter); 61 HashTable *(*get_gc)(zend_object_iterator *iter, zval **table, int *n); 92 ZEND_API void zend_iterator_init(zend_object_iterator *iter); 93 ZEND_API void zend_iterator_dtor(zend_object_iterator *iter);
|
H A D | zend_interfaces.c | 147 return &iter->value; in zend_user_it_get_current_data() 508 if (!iter) { in zend_create_internal_iterator_zval() 514 intern->iter = iter; in zend_create_internal_iterator_zval() 522 if (intern->iter) { in zend_internal_iterator_free() 540 zend_object_iterator *iter = intern->iter; in zend_internal_iterator_ensure_rewound() local 543 iter->funcs->rewind(iter); in zend_internal_iterator_ensure_rewound() 569 zval *data = intern->iter->funcs->get_current_data(intern->iter); in ZEND_METHOD() 588 intern->iter->funcs->get_current_key(intern->iter, return_value); in ZEND_METHOD() 608 intern->iter->funcs->move_forward(intern->iter); in ZEND_METHOD() 623 RETURN_BOOL(intern->iter->funcs->valid(intern->iter) == SUCCESS); in ZEND_METHOD() [all …]
|
H A D | zend_property_hooks.c | 140 zend_object *zobj = Z_OBJ_P(&iter->data); in zho_declared_it_fetch_current() 244 zho_declared_it_fetch_current(iter); in zho_it_fetch_current() 246 zho_dynamic_it_fetch_current(iter); in zho_it_fetch_current() 253 zho_it_move_forward(iter); in zho_it_fetch_current() 257 static void zho_it_dtor(zend_object_iterator *iter) in zho_it_dtor() argument 260 zval_ptr_dtor(&iter->data); in zho_it_dtor() 270 zho_it_fetch_current(iter); in zho_it_valid() 277 zho_it_fetch_current(iter); in zho_it_get_current_data() 284 zho_it_fetch_current(iter); in zho_it_get_current_key() 311 static void zho_it_rewind(zend_object_iterator *iter) in zho_it_rewind() argument [all …]
|
/php-src/ext/intl/resourcebundle/ |
H A D | resourcebundle_iterator.c | 53 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_invalidate() 67 static void resourcebundle_iterator_dtor( zend_object_iterator *iter ) in resourcebundle_iterator_dtor() argument 69 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_dtor() 72 resourcebundle_iterator_invalidate( iter ); in resourcebundle_iterator_dtor() 81 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_has_more() 89 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_current() 100 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_key() 115 static void resourcebundle_iterator_step( zend_object_iterator *iter ) in resourcebundle_iterator_step() argument 117 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_step() 120 resourcebundle_iterator_invalidate( iter ); in resourcebundle_iterator_step() [all …]
|
/php-src/ext/intl/common/ |
H A D | common_enum.cpp | 35 void zoi_with_current_dtor(zend_object_iterator *iter) in zoi_with_current_dtor() argument 37 zoi_with_current *zoiwc = (zoi_with_current*)iter; in zoi_with_current_dtor() 54 iter->funcs->invalidate_current(iter); in zoi_with_current_dtor() 55 zoiwc->destroy_it(iter); in zoi_with_current_dtor() 66 return &((zoi_with_current*)iter)->current; in zoi_with_current_get_current_data() 71 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in zoi_with_current_invalidate_current() 80 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in string_enum_current_move_forward() 83 iter->funcs->invalidate_current(iter); in string_enum_current_move_forward() 107 iter->funcs->invalidate_current(iter); in string_enum_rewind() 120 iter->funcs->move_forward(iter); in string_enum_rewind() [all …]
|
H A D | common_enum.h | 70 U_CFUNC void zoi_with_current_dtor(zend_object_iterator *iter); 71 U_CFUNC zend_result zoi_with_current_valid(zend_object_iterator *iter); 72 U_CFUNC zval *zoi_with_current_get_current_data(zend_object_iterator *iter); 73 U_CFUNC void zoi_with_current_invalidate_current(zend_object_iterator *iter);
|
/php-src/ext/mysqli/ |
H A D | mysqli_result_iterator.c | 65 static void php_mysqli_result_iterator_dtor(zend_object_iterator *iter) in php_mysqli_result_iterator_dtor() argument 67 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*)iter; in php_mysqli_result_iterator_dtor() 76 static zend_result php_mysqli_result_iterator_valid(zend_object_iterator *iter) in php_mysqli_result_iterator_valid() argument 78 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; in php_mysqli_result_iterator_valid() 87 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; in php_mysqli_result_iterator_current_data() 94 static void php_mysqli_result_iterator_move_forward(zend_object_iterator *iter) in php_mysqli_result_iterator_move_forward() argument 97 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; in php_mysqli_result_iterator_move_forward() 112 static void php_mysqli_result_iterator_rewind(zend_object_iterator *iter) in php_mysqli_result_iterator_rewind() argument 114 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; in php_mysqli_result_iterator_rewind() 129 php_mysqli_result_iterator_move_forward(iter); in php_mysqli_result_iterator_rewind() [all …]
|
/php-src/ext/simplexml/ |
H A D | simplexml.c | 995 test = sxe->iter.name && sxe->iter.type == SXE_ITER_ATTRLIST; in sxe_prop_is_empty() 1092 test = sxe->iter.name && sxe->iter.type == SXE_ITER_ATTRLIST; in sxe_get_prop_hash() 1455 if (sxe->iter.name) { in sxe_object_free_iterxpath() 2039 if (Z_ISUNDEF(sxe->iter.data) || sxe->iter.type == SXE_ITER_ATTRLIST) { in PHP_METHOD() 2064 if (Z_ISUNDEF(sxe->iter.data) || sxe->iter.type == SXE_ITER_ATTRLIST) { in PHP_METHOD() 2097 clone->iter.isprefix = sxe->iter.isprefix; in sxe_object_clone() 2099 clone->iter.name = zend_string_copy(sxe->iter.name); in sxe_object_clone() 2102 clone->iter.nsprefix = zend_string_copy(sxe->iter.nsprefix); in sxe_object_clone() 2104 clone->iter.type = sxe->iter.type; in sxe_object_clone() 2359 if (sxe->iter.name) { in php_sxe_iterator_fetch() [all …]
|
/php-src/ext/dom/tests/ |
H A D | childNodes_current_crash.phpt | 12 $iter = $nodes->getIterator(); 14 var_dump($iter->valid()); 15 var_dump($iter->current()?->wholeText); 16 $iter->next(); 17 var_dump($iter->valid()); 18 var_dump($iter->current()?->wholeText);
|
H A D | gh15551.phpt | 9 $iter = $nodes->getIterator(); 10 $iter->next(); 11 var_dump($iter->valid());
|
H A D | entity_reference_stale_02.phpt | 22 $iter = $nodes->getIterator(); 23 $iter->next(); 28 var_dump($iter->current()->publicId);
|
/php-src/Zend/tests/generators/ |
H A D | yield_by_reference.phpt | 6 function &iter(array &$array) { 13 $iter = iter($array); 14 foreach ($iter as &$value) { 20 foreach (iter($array) as &$value) {
|
H A D | gc_with_iterator_in_foreach.phpt | 6 function gen($iter, &$gen) { 7 foreach ($iter as $v) { 12 $iter = new ArrayIterator([1, 2, 3]); 13 $gen = gen($iter, $gen);
|
/php-src/ext/spl/tests/ |
H A D | bug76367.phpt | 7 $iter = new NoRewindIterator(new ArrayIterator($arr)); 9 while($iter->valid()) { 10 $iter->next(); 13 var_dump($iter->current());
|
H A D | bug51068.phpt | 8 $iter = new DirectoryIterator('glob://*.51068'); 9 foreach ($iter as $f) { 13 $iter = new DirectoryIterator('glob://bug.51068.dir/*.51068'); 14 foreach ($iter as $f) { 18 $iter = new DirectoryIterator('glob://bug.51068.dir'); 19 foreach ($iter as $f) {
|
/php-src/ext/dom/ |
H A D | dom_iterators.c | 69 nodeIterator iter; in php_dom_libxml_hash_iter_ex() local 70 iter.cur = 0; in php_dom_libxml_hash_iter_ex() 71 iter.index = index; in php_dom_libxml_hash_iter_ex() 72 iter.node = NULL; in php_dom_libxml_hash_iter_ex() 73 xmlHashScan(ht, itemHashScanner, &iter); in php_dom_libxml_hash_iter_ex() 74 return iter.node; in php_dom_libxml_hash_iter_ex() 94 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_dtor() 103 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_valid() 115 php_dom_iterator *iterator = (php_dom_iterator *)iter; in php_dom_iterator_current_data() 128 ZVAL_LONG(key, iter->index); in php_dom_iterator_current_key() [all …]
|
/php-src/ext/com_dotnet/ |
H A D | com_iterator.c | 29 zend_object_iterator iter; member 40 static void com_iter_dtor(zend_object_iterator *iter) in com_iter_dtor() argument 42 struct php_com_iterator *I = (struct php_com_iterator*)Z_PTR(iter->data); in com_iter_dtor() 52 static zend_result com_iter_valid(zend_object_iterator *iter) in com_iter_valid() argument 63 static zval* com_iter_get_data(zend_object_iterator *iter) in com_iter_get_data() argument 70 static void com_iter_get_key(zend_object_iterator *iter, zval *key) in com_iter_get_key() argument 81 static void com_iter_move_forwards(zend_object_iterator *iter) in com_iter_move_forwards() argument 161 zend_iterator_init(&I->iter); in php_com_iter_get() 162 I->iter.funcs = &com_iter_funcs; in php_com_iter_get() 163 Z_PTR(I->iter.data) = I; in php_com_iter_get() [all …]
|
/php-src/ext/date/tests/ |
H A D | DatePeriod_IteratorAggregate.phpt | 17 $iter = $period->getIterator(); 18 for (; $iter->valid(); $iter->next()) { 19 $i = $iter->key(); 20 $date = $iter->current(); 25 $iter->rewind(); 26 for (; $iter->valid(); $iter->next()) { 27 $i = $iter->key(); 28 $date = $iter->current();
|
/php-src/ext/intl/tests/ |
H A D | gh7734.phpt | 8 $iter = \IntlBreakIterator::createCodePointInstance(); 9 $iter->setText('ABC'); 11 foreach ($iter->getPartsIterator(\IntlPartsIterator::KEY_SEQUENTIAL) as $key => $value) { 15 foreach ($iter->getPartsIterator(\IntlPartsIterator::KEY_LEFT) as $key => $value) { 19 foreach ($iter->getPartsIterator(\IntlPartsIterator::KEY_RIGHT) as $key => $value) {
|
/php-src/Zend/tests/namespaces/ |
H A D | namespace_name_reserved_keywords.phpt | 6 namespace iter\fn { 25 use iter\fn; 35 iter\fn\test
|
/php-src/ext/standard/tests/file/windows_mb_path/ |
H A D | recursive_it.phpt | 28 $iter = new RecursiveIteratorIterator( 36 foreach ($iter as $item) { 42 $iter->rewind(); 43 foreach ($iter as $item) {
|
/php-src/ext/pcre/tests/ |
H A D | bug27103.phpt | 11 function iter($ar) 18 iter(preg_split('//u', $teststr, -1, PREG_SPLIT_NO_EMPTY)); 20 iter($matches[0]);
|