/PHP-7.3/ext/intl/resourcebundle/ |
H A D | resourcebundle_iterator.c | 56 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_invalidate() 70 static void resourcebundle_iterator_dtor( zend_object_iterator *iter ) in resourcebundle_iterator_dtor() argument 72 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_dtor() 75 resourcebundle_iterator_invalidate( iter ); in resourcebundle_iterator_dtor() 84 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_has_more() 92 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_current() 103 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_key() 118 static void resourcebundle_iterator_step( zend_object_iterator *iter ) in resourcebundle_iterator_step() argument 120 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_step() 123 resourcebundle_iterator_invalidate( iter ); in resourcebundle_iterator_step() [all …]
|
/PHP-7.3/Zend/ |
H A D | zend_iterators.h | 31 void (*dtor)(zend_object_iterator *iter); 34 int (*valid)(zend_object_iterator *iter); 37 zval *(*get_current_data)(zend_object_iterator *iter); 43 void (*get_current_key)(zend_object_iterator *iter, zval *key); 46 void (*move_forward)(zend_object_iterator *iter); 49 void (*rewind)(zend_object_iterator *iter); 52 void (*invalidate_current)(zend_object_iterator *iter); 76 ZEND_API void zend_iterator_init(zend_object_iterator *iter); 77 ZEND_API void zend_iterator_dtor(zend_object_iterator *iter);
|
H A D | zend_iterators.c | 66 zend_object_iterator *iter = (zend_object_iterator*)object; in iter_wrapper_free() local 67 iter->funcs->dtor(iter); in iter_wrapper_free() 74 ZEND_API void zend_iterator_init(zend_object_iterator *iter) in zend_iterator_init() argument 76 zend_object_std_init(&iter->std, &zend_iterator_class_entry); in zend_iterator_init() 77 iter->std.handlers = &iterator_object_handlers; in zend_iterator_init() 80 ZEND_API void zend_iterator_dtor(zend_object_iterator *iter) in zend_iterator_dtor() argument 82 if (GC_DELREF(&iter->std) > 0) { in zend_iterator_dtor() 86 zend_objects_store_del(&iter->std); in zend_iterator_dtor()
|
H A D | zend_interfaces.c | 136 if (!Z_ISUNDEF(iter->value)) { in zend_user_it_invalidate_current() 137 zval_ptr_dtor(&iter->value); in zend_user_it_invalidate_current() 138 ZVAL_UNDEF(&iter->value); in zend_user_it_invalidate_current() 147 zval *object = &iter->it.data; in zend_user_it_dtor() 176 zval *object = &iter->it.data; in zend_user_it_get_current_data() 178 if (Z_ISUNDEF(iter->value)) { in zend_user_it_get_current_data() 179 …zend_call_method_with_0_params(object, iter->ce, &iter->ce->iterator_funcs_ptr->zf_current, "curre… in zend_user_it_get_current_data() 181 return &iter->value; in zend_user_it_get_current_data() 189 zval *object = &iter->it.data; in zend_user_it_get_current_key() 210 zval *object = &iter->it.data; in zend_user_it_move_forward() [all …]
|
/PHP-7.3/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 int 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) argument 114 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; 133 php_mysqli_result_iterator_move_forward(iter); [all …]
|
/PHP-7.3/ext/interbase/tests/ |
H A D | 007.phpt | 14 iter integer, 41 for($iter = 0; $iter < 3; $iter++) { 72 $sel = ibase_query("select * from test7 where iter = $iter"); 124 }/* for($iter) */ 132 for($iter = 1; $iter <= 3; $iter++) { 135 "select iter from test7 where v_char[$iter] LIKE ?", $v_char[$iter]."%")) || 142 "select iter from test7 where v_date[$iter] = ?", $v_date[$iter])) || 148 "select iter from test7 where v_decimal[$iter] = ?", $v_decimal[$iter])) || 154 "select iter from test7 where v_integer[$iter] = ?", $v_integer[$iter])) || 160 "select iter from test7 where v_numeric[$iter] = ?", $v_numeric[$iter])) || [all …]
|
H A D | 006.phpt | 14 iter integer, 39 for($iter = 0; $iter < 3; $iter++) { 52 (iter,v_char,v_date,v_decimal,v_double,v_float, 55 $iter, $v_char, $v_date, $v_decimal, $v_double, $v_float, 57 $sel = ibase_query("select * from test6 where iter = ?", $iter); 106 }/* for($iter)*/ 109 for($iter = 0; $iter < 3; $iter++) { 126 (iter, v_char,v_date,v_decimal, 133 "select iter from test6 where v_char = ?", $v_char)) || 139 "select iter from test6 where v_date = ?", $v_date)) || [all …]
|
H A D | 003.phpt | 13 iter integer not null, 31 @ibase_query("insert into test3 (iter) values (?)", null); 36 for($iter = 0; $iter < 10; $iter++){ 45 $v_numeric15_0 = $iter ? rand_number(15,0) : 0; 53 …"insert into test3 (iter, v_char,v_date,v_decimal4_2, v_decimal4_0, v_decimal7_2, v_decimal7_0,v_n… 54 …values ($iter, '$v_char','$v_date',$v_decimal4_2, $v_decimal4_0, $v_decimal7_2, $v_decimal7_0,$v_n… 55 $sel = ibase_query("select * from test3 where iter = $iter"); 126 } /* for($iter) */
|
/PHP-7.3/ext/dom/ |
H A D | dom_iterators.c | 88 nodeIterator *iter; in php_dom_libxml_hash_iter() local 93 iter->cur = 0; in php_dom_libxml_hash_iter() 94 iter->index = index; in php_dom_libxml_hash_iter() 95 iter->node = NULL; in php_dom_libxml_hash_iter() 97 nodep = iter->node; in php_dom_libxml_hash_iter() 98 efree(iter); in php_dom_libxml_hash_iter() 108 notationIterator *iter; in php_dom_libxml_notation_iter() local 114 iter->cur = 0; in php_dom_libxml_notation_iter() 115 iter->index = index; in php_dom_libxml_notation_iter() 116 iter->notation = NULL; in php_dom_libxml_notation_iter() [all …]
|
/PHP-7.3/ext/intl/breakiterator/ |
H A D | breakiterator_iterators.cpp | 42 bio = Z_INTL_BREAKITERATOR_P(&iter->data); in _breakiter_prolog() 54 zval_ptr_dtor(&iter->data); in _breakiterator_destroy_it() 59 BreakIterator *biter = _breakiter_prolog(iter); in _breakiterator_move_forward() 62 iter->funcs->invalidate_current(iter); in _breakiterator_move_forward() 134 zval_ptr_dtor(&iter->data); in _breakiterator_parts_destroy_it() 140 ZVAL_LONG(key, iter->index); in _breakiterator_parts_get_current_key() 148 iter->funcs->invalidate_current(iter); in _breakiterator_parts_move_forward() 163 iter->index = cur; in _breakiterator_parts_move_forward() 165 iter->index = next; in _breakiterator_parts_move_forward() 189 iter->funcs->invalidate_current(iter); in _breakiterator_parts_rewind() [all …]
|
/PHP-7.3/ext/intl/common/ |
H A D | common_enum.cpp | 36 void zoi_with_current_dtor(zend_object_iterator *iter) in zoi_with_current_dtor() argument 38 zoi_with_current *zoiwc = (zoi_with_current*)iter; in zoi_with_current_dtor() 55 iter->funcs->invalidate_current(iter); in zoi_with_current_dtor() 56 zoiwc->destroy_it(iter); in zoi_with_current_dtor() 67 return &((zoi_with_current*)iter)->current; in zoi_with_current_get_current_data() 72 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in zoi_with_current_invalidate_current() 81 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in string_enum_current_move_forward() 84 iter->funcs->invalidate_current(iter); in string_enum_current_move_forward() 108 iter->funcs->invalidate_current(iter); in string_enum_rewind() 121 iter->funcs->move_forward(iter); in string_enum_rewind() [all …]
|
H A D | common_enum.h | 72 U_CFUNC void zoi_with_current_dtor(zend_object_iterator *iter); 73 U_CFUNC int zoi_with_current_valid(zend_object_iterator *iter); 74 U_CFUNC zval *zoi_with_current_get_current_data(zend_object_iterator *iter); 75 U_CFUNC void zoi_with_current_invalidate_current(zend_object_iterator *iter);
|
/PHP-7.3/ext/simplexml/ |
H A D | simplexml.c | 144 sxe->iter.type == SXE_ITER_ELEMENT && !xmlStrcmp(node->name, sxe->iter.name))) { in sxe_get_element_by_offset() 295 …(!test || !xmlStrcmp(attr->name, sxe->iter.name)) && match_ns(sxe, (xmlNodePtr) attr, sxe->iter.ns… in sxe_prop_dim_read() 1033 test = sxe->iter.name && sxe->iter.type == SXE_ITER_ATTRLIST; in sxe_prop_is_empty() 1142 test = sxe->iter.name && sxe->iter.type == SXE_ITER_ATTRLIST; in sxe_get_prop_hash() 2023 clone->iter.isprefix = sxe->iter.isprefix; in sxe_object_clone() 2025 clone->iter.name = (xmlChar*)estrdup((char*)sxe->iter.name); in sxe_object_clone() 2028 clone->iter.nsprefix = (xmlChar*)estrdup((char*)sxe->iter.nsprefix); in sxe_object_clone() 2030 clone->iter.type = sxe->iter.type; in sxe_object_clone() 2056 if (sxe->iter.name) { in sxe_object_dtor() 2314 if (sxe->iter.name) { in php_sxe_iterator_fetch() [all …]
|
H A D | sxe.c | 60 RETURN_BOOL(!Z_ISUNDEF(sxe->iter.data)); in PHP_METHOD() 75 if (Z_ISUNDEF(sxe->iter.data)) { in PHP_METHOD() 79 data = &sxe->iter.data; in PHP_METHOD() 96 if (Z_ISUNDEF(sxe->iter.data)) { in PHP_METHOD() 100 intern = Z_SXEOBJ_P(&sxe->iter.data); in PHP_METHOD() 134 if (Z_ISUNDEF(sxe->iter.data) || sxe->iter.type == SXE_ITER_ATTRLIST) { in PHP_METHOD() 137 child = Z_SXEOBJ_P(&sxe->iter.data); in PHP_METHOD() 161 if (Z_ISUNDEF(sxe->iter.data) || sxe->iter.type == SXE_ITER_ATTRLIST) { in PHP_METHOD() 165 data = &sxe->iter.data; in PHP_METHOD()
|
/PHP-7.3/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) {
|
/PHP-7.3/ext/spl/internal/ |
H A D | multipleiterator.inc | 75 foreach($this->iterators as $iter) 89 $this->iterators->detach($iter); 92 /** @param $iter Iterator to check 109 foreach($this->iterators as $iter) 111 $iter->rewind(); 132 if ($expect != $iter->valid()) 147 $iter->next(); 166 if ($iter->valid()) 179 $retval[] = $iter->current(); 208 if ($iter->valid()) [all …]
|
/PHP-7.3/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) {
|
H A D | bug75717.phpt | 8 $iter = new RecursiveIteratorIterator( 10 foreach($iter as $leaf){ $flat[] = $leaf; }
|
/PHP-7.3/ext/com_dotnet/ |
H A D | com_iterator.c | 31 zend_object_iterator iter; member 42 static void com_iter_dtor(zend_object_iterator *iter) in com_iter_dtor() argument 44 struct php_com_iterator *I = (struct php_com_iterator*)Z_PTR(iter->data); in com_iter_dtor() 54 static int com_iter_valid(zend_object_iterator *iter) in com_iter_valid() argument 65 static zval* com_iter_get_data(zend_object_iterator *iter) in com_iter_get_data() argument 72 static void com_iter_get_key(zend_object_iterator *iter, zval *key) in com_iter_get_key() argument 83 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 …]
|
H A D | com_saproxy.c | 52 zend_object_iterator iter; member 459 static void saproxy_iter_dtor(zend_object_iterator *iter) in saproxy_iter_dtor() argument 461 php_com_saproxy_iter *I = (php_com_saproxy_iter*)Z_PTR(iter->data); in saproxy_iter_dtor() 469 static int saproxy_iter_valid(zend_object_iterator *iter) in saproxy_iter_valid() argument 471 php_com_saproxy_iter *I = (php_com_saproxy_iter*)Z_PTR(iter->data); in saproxy_iter_valid() 476 static zval* saproxy_iter_get_data(zend_object_iterator *iter) in saproxy_iter_get_data() argument 478 php_com_saproxy_iter *I = (php_com_saproxy_iter*)Z_PTR(iter->data); in saproxy_iter_get_data() 517 static void saproxy_iter_move_forwards(zend_object_iterator *iter) in saproxy_iter_move_forwards() argument 548 I->iter.funcs = &saproxy_iter_funcs; in php_com_saproxy_iter_get() 549 Z_PTR(I->iter.data) = I; in php_com_saproxy_iter_get() [all …]
|
/PHP-7.3/ext/xmlrpc/libxmlrpc/ |
H A D | xml_to_xmlrpc.c | 85 while (iter) { in xml_element_to_XMLRPC_REQUEST_worker() 97 xml_element* iter = (xml_element*)Q_Head(&el->children); in xml_element_to_XMLRPC_REQUEST_worker() local 100 while (iter) { in xml_element_to_XMLRPC_REQUEST_worker() 104 iter = (xml_element*)Q_Next(&el->children); in xml_element_to_XMLRPC_REQUEST_worker() 108 xml_element* iter = (xml_element*)Q_Head(&el->children); in xml_element_to_XMLRPC_REQUEST_worker() local 111 while ( iter ) { in xml_element_to_XMLRPC_REQUEST_worker() 115 iter = (xml_element*)Q_Next(&el->children); in xml_element_to_XMLRPC_REQUEST_worker() 144 xml_element* iter; in xml_element_to_XMLRPC_REQUEST_worker() local 162 iter = (xml_element*)Q_Head(&el->children); in xml_element_to_XMLRPC_REQUEST_worker() 163 while ( iter ) { in xml_element_to_XMLRPC_REQUEST_worker() [all …]
|
/PHP-7.3/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]);
|
/PHP-7.3/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-7.3/Zend/tests/ |
H A D | bug69221_2.phpt | 10 $iter = new IteratorIterator($gen()); 11 $ngen = $iter->getInnerIterator();
|