/PHP-5.5/ext/intl/resourcebundle/ |
H A D | resourcebundle_iterator.c | 57 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_invalidate() 71 static void resourcebundle_iterator_dtor( zend_object_iterator *iter TSRMLS_DC ) in resourcebundle_iterator_dtor() 73 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_dtor() 76 resourcebundle_iterator_invalidate( iter TSRMLS_CC ); in resourcebundle_iterator_dtor() 87 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_has_more() 95 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_current() 106 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_key() 123 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_step() 126 resourcebundle_iterator_invalidate( iter TSRMLS_CC ); in resourcebundle_iterator_step() 133 ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; in resourcebundle_iterator_reset() [all …]
|
/PHP-5.5/Zend/ |
H A D | zend_iterators.h | 33 void (*dtor)(zend_object_iterator *iter TSRMLS_DC); 36 int (*valid)(zend_object_iterator *iter TSRMLS_DC); 39 void (*get_current_data)(zend_object_iterator *iter, zval ***data TSRMLS_DC); 45 void (*get_current_key)(zend_object_iterator *iter, zval *key TSRMLS_DC); 48 void (*move_forward)(zend_object_iterator *iter TSRMLS_DC); 51 void (*rewind)(zend_object_iterator *iter TSRMLS_DC); 54 void (*invalidate_current)(zend_object_iterator *iter TSRMLS_DC); 82 …_object_iterator_kind zend_iterator_unwrap(zval *array_ptr, zend_object_iterator **iter TSRMLS_DC); 85 ZEND_API zval *zend_iterator_wrap(zend_object_iterator *iter TSRMLS_DC);
|
H A D | zend_iterators.c | 60 zend_object_iterator *iter = (zend_object_iterator*)object; in iter_wrapper_dtor() local 61 iter->funcs->dtor(iter TSRMLS_CC); in iter_wrapper_dtor() 64 ZEND_API zval *zend_iterator_wrap(zend_object_iterator *iter TSRMLS_DC) in zend_iterator_wrap() 70 Z_OBJ_HANDLE_P(wrapped) = zend_objects_store_put(iter, iter_wrapper_dtor, NULL, NULL TSRMLS_CC); in zend_iterator_wrap() 77 zval *array_ptr, zend_object_iterator **iter TSRMLS_DC) in zend_iterator_unwrap() 82 *iter = (zend_object_iterator *)zend_object_store_get_object(array_ptr TSRMLS_CC); in zend_iterator_unwrap()
|
H A D | zend_interfaces.c | 135 if (iter->value) { in zend_user_it_invalidate_current() 136 zval_ptr_dtor(&iter->value); in zend_user_it_invalidate_current() 137 iter->value = NULL; in zend_user_it_invalidate_current() 146 zval *object = (zval*)iter->it.data; in zend_user_it_dtor() 150 efree(iter); in zend_user_it_dtor() 163 …zend_call_method_with_0_params(&object, iter->ce, &iter->ce->iterator_funcs.zf_valid, "valid", &mo… in zend_user_it_valid() 180 if (!iter->value) { in zend_user_it_get_current_data() 181 …zend_call_method_with_0_params(&object, iter->ce, &iter->ce->iterator_funcs.zf_current, "current",… in zend_user_it_get_current_data() 183 *data = &iter->value; in zend_user_it_get_current_data() 204 …zend_call_method_with_0_params(&object, iter->ce, &iter->ce->iterator_funcs.zf_key, "key", &retval… in zend_user_it_get_current_key() [all …]
|
/PHP-5.5/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-5.5/ext/dom/ |
H A D | dom_iterators.c | 86 nodeIterator *iter; in php_dom_libxml_hash_iter() local 91 iter->cur = 0; in php_dom_libxml_hash_iter() 92 iter->index = index; in php_dom_libxml_hash_iter() 93 iter->node = NULL; in php_dom_libxml_hash_iter() 95 nodep = iter->node; in php_dom_libxml_hash_iter() 96 efree(iter); in php_dom_libxml_hash_iter() 106 notationIterator *iter; in php_dom_libxml_notation_iter() local 112 iter->cur = 0; in php_dom_libxml_notation_iter() 113 iter->index = index; in php_dom_libxml_notation_iter() 114 iter->notation = NULL; in php_dom_libxml_notation_iter() [all …]
|
/PHP-5.5/ext/simplexml/ |
H A D | sxe.c | 43 php_sxe_iterator iter; in PHP_METHOD() local 49 iter.sxe = php_sxe_fetch_object(getThis() TSRMLS_CC); in PHP_METHOD() 64 RETURN_BOOL(sxe->iter.data); in PHP_METHOD() 78 if (!sxe->iter.data) { in PHP_METHOD() 82 RETURN_ZVAL(sxe->iter.data, 1, 0); in PHP_METHOD() 98 if (!sxe->iter.data) { in PHP_METHOD() 116 php_sxe_iterator iter; in PHP_METHOD() local 122 iter.sxe = php_sxe_fetch_object(getThis() TSRMLS_CC); in PHP_METHOD() 139 if (!sxe->iter.data || sxe->iter.type == SXE_ITER_ATTRLIST) { in PHP_METHOD() 165 if (!sxe->iter.data || sxe->iter.type == SXE_ITER_ATTRLIST) { in PHP_METHOD() [all …]
|
H A D | simplexml.c | 118 if (sxe->iter.data) { in php_sxe_get_first_node() 1103 test = sxe->iter.name && sxe->iter.type == SXE_ITER_ATTRLIST; in sxe_get_prop_hash() 1892 if (sxe->iter.data) { in php_sxe_count_elements_helper() 2002 clone->iter.isprefix = sxe->iter.isprefix; in sxe_object_clone() 2004 clone->iter.name = xmlStrdup((xmlChar *)sxe->iter.name); in sxe_object_clone() 2007 clone->iter.nsprefix = xmlStrdup((xmlChar *)sxe->iter.nsprefix); in sxe_object_clone() 2009 clone->iter.type = sxe->iter.type; in sxe_object_clone() 2031 if (sxe->iter.data) { in sxe_object_dtor() 2036 if (sxe->iter.name) { in sxe_object_dtor() 2284 int test_elem = sxe->iter.type == SXE_ITER_ELEMENT && sxe->iter.name; in php_sxe_iterator_fetch() [all …]
|
/PHP-5.5/ext/mysqli/ |
H A D | mysqli_result_iterator.c | 68 static void php_mysqli_result_iterator_dtor(zend_object_iterator *iter TSRMLS_DC) in php_mysqli_result_iterator_dtor() 70 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; in php_mysqli_result_iterator_dtor() 85 static int php_mysqli_result_iterator_valid(zend_object_iterator *iter TSRMLS_DC) in php_mysqli_result_iterator_valid() 87 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; in php_mysqli_result_iterator_valid() 97 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; in php_mysqli_result_iterator_current_data() 105 static void php_mysqli_result_iterator_move_forward(zend_object_iterator *iter TSRMLS_DC) in php_mysqli_result_iterator_move_forward() 108 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; in php_mysqli_result_iterator_move_forward() 126 static void php_mysqli_result_iterator_rewind(zend_object_iterator *iter TSRMLS_DC) 128 php_mysqli_result_iterator *iterator = (php_mysqli_result_iterator*) iter; 147 php_mysqli_result_iterator_move_forward(iter TSRMLS_CC); [all …]
|
/PHP-5.5/ext/intl/breakiterator/ |
H A D | breakiterator_iterators.cpp | 43 (const zval*)iter->data TSRMLS_CC); in _breakiter_prolog() 55 zval_ptr_dtor((zval**)&iter->data); in _breakiterator_destroy_it() 61 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in _breakiterator_move_forward() 63 iter->funcs->invalidate_current(iter TSRMLS_CC); in _breakiterator_move_forward() 79 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in _breakiterator_rewind() 145 ZVAL_LONG(key, iter->index); in _breakiterator_parts_get_current_key() 153 iter->funcs->invalidate_current(iter TSRMLS_CC); in _breakiterator_parts_move_forward() 168 iter->index = cur; in _breakiterator_parts_move_forward() 170 iter->index = next; in _breakiterator_parts_move_forward() 200 iter->funcs->invalidate_current(iter TSRMLS_CC); in _breakiterator_parts_rewind() [all …]
|
/PHP-5.5/ext/intl/common/ |
H A D | common_enum.cpp | 38 zoi_with_current *zoiwc = (zoi_with_current*)iter; in zoi_with_current_dtor() 55 iter->funcs->invalidate_current(iter TSRMLS_CC); in zoi_with_current_dtor() 56 zoiwc->destroy_it(iter TSRMLS_CC); in zoi_with_current_dtor() 57 efree(iter); in zoi_with_current_dtor() 68 *data = &((zoi_with_current*)iter)->current; in zoi_with_current_get_current_data() 73 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in zoi_with_current_invalidate_current() 82 zoi_with_current *zoi_iter = (zoi_with_current*)iter; in string_enum_current_move_forward() 85 iter->funcs->invalidate_current(iter TSRMLS_CC); in string_enum_current_move_forward() 110 iter->funcs->invalidate_current(iter TSRMLS_CC); in string_enum_rewind() 123 iter->funcs->move_forward(iter TSRMLS_CC); in string_enum_rewind() [all …]
|
H A D | common_enum.h | 66 U_CFUNC void zoi_with_current_dtor(zend_object_iterator *iter TSRMLS_DC); 67 U_CFUNC int zoi_with_current_valid(zend_object_iterator *iter TSRMLS_DC); 68 U_CFUNC void zoi_with_current_get_current_data(zend_object_iterator *iter, zval ***data TSRMLS_DC); 69 U_CFUNC void zoi_with_current_invalidate_current(zend_object_iterator *iter TSRMLS_DC);
|
/PHP-5.5/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-5.5/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-5.5/ext/com_dotnet/ |
H A D | com_iterator.c | 33 zend_object_iterator iter; member 44 static void com_iter_dtor(zend_object_iterator *iter TSRMLS_DC) in com_iter_dtor() 46 struct php_com_iterator *I = (struct php_com_iterator*)iter->data; in com_iter_dtor() 59 static int com_iter_valid(zend_object_iterator *iter TSRMLS_DC) in com_iter_valid() 61 struct php_com_iterator *I = (struct php_com_iterator*)iter->data; in com_iter_valid() 72 struct php_com_iterator *I = (struct php_com_iterator*)iter->data; in com_iter_get_data() 79 struct php_com_iterator *I = (struct php_com_iterator*)iter->data; in com_iter_get_key() 90 struct php_com_iterator *I = (struct php_com_iterator*)iter->data; in com_iter_move_forwards() 166 I->iter.funcs = &com_iter_funcs; in php_com_iter_get() 167 I->iter.data = I; in php_com_iter_get() [all …]
|
H A D | com_saproxy.c | 53 zend_object_iterator iter; member 472 static void saproxy_iter_dtor(zend_object_iterator *iter TSRMLS_DC) in saproxy_iter_dtor() 474 php_com_saproxy_iter *I = (php_com_saproxy_iter*)iter->data; in saproxy_iter_dtor() 482 static int saproxy_iter_valid(zend_object_iterator *iter TSRMLS_DC) in saproxy_iter_valid() 484 php_com_saproxy_iter *I = (php_com_saproxy_iter*)iter->data; in saproxy_iter_valid() 491 php_com_saproxy_iter *I = (php_com_saproxy_iter*)iter->data; in saproxy_iter_get_data() 524 php_com_saproxy_iter *I = (php_com_saproxy_iter*)iter->data; in saproxy_iter_get_key() 535 php_com_saproxy_iter *I = (php_com_saproxy_iter*)iter->data; in saproxy_iter_move_forwards() 565 I->iter.funcs = &saproxy_iter_funcs; in php_com_saproxy_iter_get() 566 I->iter.data = I; in php_com_saproxy_iter_get() [all …]
|
/PHP-5.5/ext/xmlrpc/libxmlrpc/ |
H A D | xml_to_xmlrpc.c | 88 while (iter) { in xml_element_to_XMLRPC_REQUEST_worker() 100 xml_element* iter = (xml_element*)Q_Head(&el->children); in xml_element_to_XMLRPC_REQUEST_worker() local 103 while (iter) { in xml_element_to_XMLRPC_REQUEST_worker() 107 iter = (xml_element*)Q_Next(&el->children); in xml_element_to_XMLRPC_REQUEST_worker() 111 xml_element* iter = (xml_element*)Q_Head(&el->children); in xml_element_to_XMLRPC_REQUEST_worker() local 114 while ( iter ) { in xml_element_to_XMLRPC_REQUEST_worker() 118 iter = (xml_element*)Q_Next(&el->children); in xml_element_to_XMLRPC_REQUEST_worker() 147 xml_element* iter; in xml_element_to_XMLRPC_REQUEST_worker() local 165 iter = (xml_element*)Q_Head(&el->children); in xml_element_to_XMLRPC_REQUEST_worker() 166 while ( iter ) { in xml_element_to_XMLRPC_REQUEST_worker() [all …]
|
H A D | xml_to_dandarpc.c | 113 xml_element* iter = (xml_element*)Q_Head(&el->children); in xml_element_to_DANDARPC_REQUEST_worker() local 124 while( iter ) { in xml_element_to_DANDARPC_REQUEST_worker() 126 xml_element_to_DANDARPC_REQUEST_worker(request, xNext, iter); in xml_element_to_DANDARPC_REQUEST_worker() 128 iter = (xml_element*)Q_Next(&el->children); in xml_element_to_DANDARPC_REQUEST_worker() 132 xml_element* iter = (xml_element*)Q_Head(&el->children); in xml_element_to_DANDARPC_REQUEST_worker() local 133 while( iter ) { in xml_element_to_DANDARPC_REQUEST_worker() 134 xml_element_to_DANDARPC_REQUEST_worker(request, xCurrent, iter); in xml_element_to_DANDARPC_REQUEST_worker() 135 iter = (xml_element*)Q_Next(&el->children); in xml_element_to_DANDARPC_REQUEST_worker()
|
H A D | queue.c | 521 void *Q_Iter_Del(queue *q, q_iter iter) in Q_Iter_Del() argument 529 if(iter == NULL) in Q_Iter_Del() 532 if(iter == (q_iter)q->head) in Q_Iter_Del() 535 if(iter == (q_iter)q->tail) in Q_Iter_Del() 538 n = ((node*)iter)->next; in Q_Iter_Del() 539 p = ((node*)iter)->prev; in Q_Iter_Del() 540 d = ((node*)iter)->data; in Q_Iter_Del() 542 free(iter); in Q_Iter_Del() 547 if (q->cursor == (node*)iter) { in Q_Iter_Del()
|
/PHP-5.5/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-5.5/Zend/tests/ |
H A D | bug69221_2.phpt | 10 $iter = new IteratorIterator($gen()); 11 $ngen = $iter->getInnerIterator();
|
/PHP-5.5/ext/standard/tests/general_functions/ |
H A D | bug44295-win.phpt | 17 $iter = new DirectoryIterator($dir); 18 print get_class($iter) . "\n";
|
H A D | bug44295.phpt | 17 $iter = new DirectoryIterator($dir); 18 print get_class($iter) . "\n";
|