Home
last modified time | relevance | path

Searched refs:iter (Results 1 – 25 of 52) sorted by last modified time

123

/PHP-5.5/tests/classes/
H A Diterators_001.phpt62 for ($iter = $t->getIterator(); $iter->valid(); $iter->next()) {
63 echo $iter->current() . "\n";
/PHP-5.5/ext/xmlrpc/libxmlrpc/
H A Dxml_to_dandarpc.c113 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 Dxml_to_soap.c374 xml_element* iter = (xml_element*)Q_Head(&el->children); in xml_element_to_SOAP_REQUEST_worker() local
391 while ( iter && !XMLRPC_RequestGetError(request) ) { in xml_element_to_SOAP_REQUEST_worker()
397 xml_element_to_SOAP_REQUEST_worker(request, NULL, ai, xCurrent, iter, depth); in xml_element_to_SOAP_REQUEST_worker()
403 xml_element_to_SOAP_REQUEST_worker(request, xCurrent, ai, xNext, iter, depth); in xml_element_to_SOAP_REQUEST_worker()
406 iter = (xml_element*)Q_Next(&el->children); in xml_element_to_SOAP_REQUEST_worker()
643 xml_element* iter = (xml_element*)Q_Head(&el_serialized->children); in SOAP_REQUEST_to_xml_element() local
644 while(iter) { in SOAP_REQUEST_to_xml_element()
645 Q_PushTail(&rpc->children, iter); in SOAP_REQUEST_to_xml_element()
646 iter = (xml_element*)Q_Next(&el_serialized->children); in SOAP_REQUEST_to_xml_element()
H A Dqueue.c521 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()
H A Dqueue.h80 void* Q_Iter_Del(queue *q, q_iter iter); /* not read only! here for completeness. */
H A Dxml_element.c422 xml_element_attr* iter = Q_Head(&el->attrs); in xml_element_serialize() local
423 while( iter ) { in xml_element_serialize()
425 xml_elem_writefunc(fptr, iter->key, data, 0); in xml_element_serialize()
428 xml_elem_writefunc(fptr, iter->val, data, 0); in xml_element_serialize()
431 iter = Q_Next(&el->attrs); in xml_element_serialize()
H A Dxml_to_xmlrpc.c88 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 …]
/PHP-5.5/ext/standard/tests/strings/
H A Dcrypt_sha256.phpt55 foreach ($tests as $iter => $t) {
57 if ($res != $t[2]) echo "Iteration $iter failed.
H A Dcrypt_sha512.phpt55 foreach ($tests as $iter => $t) {
57 if ($res != $t[2]) echo "Iteration $iter failed.
/PHP-5.5/ext/standard/tests/general_functions/
H A Dbug44295-win.phpt17 $iter = new DirectoryIterator($dir);
18 print get_class($iter) . "\n";
H A Dbug44295.phpt17 $iter = new DirectoryIterator($dir);
18 print get_class($iter) . "\n";
/PHP-5.5/ext/spl/
H A Dspl_iterators.c157 efree(iter); in spl_recursive_it_dtor()
3491 iter->index = 0; in spl_iterator_apply()
3493 iter->funcs->rewind(iter TSRMLS_CC); in spl_iterator_apply()
3499 while (iter->funcs->valid(iter TSRMLS_CC) == SUCCESS) { in spl_iterator_apply()
3506 iter->index++; in spl_iterator_apply()
3507 iter->funcs->move_forward(iter TSRMLS_CC); in spl_iterator_apply()
3514 if (iter) { in spl_iterator_apply()
3515 iter->funcs->dtor(iter TSRMLS_CC); in spl_iterator_apply()
3525 iter->funcs->get_current_data(iter, &data TSRMLS_CC); in spl_iterator_to_array_apply()
3534 iter->funcs->get_current_key(iter, &key TSRMLS_CC); in spl_iterator_to_array_apply()
[all …]
H A Dspl_iterators.h170 typedef int (*spl_iterator_apply_func_t)(zend_object_iterator *iter, void *puser TSRMLS_DC);
H A Dspl_directory.c1630 static void spl_filesystem_dir_it_dtor(zend_object_iterator *iter TSRMLS_DC);
1631 static int spl_filesystem_dir_it_valid(zend_object_iterator *iter TSRMLS_DC);
1675 static void spl_filesystem_dir_it_dtor(zend_object_iterator *iter TSRMLS_DC) in spl_filesystem_dir_it_dtor()
1677 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; in spl_filesystem_dir_it_dtor()
1692 static int spl_filesystem_dir_it_valid(zend_object_iterator *iter TSRMLS_DC) in spl_filesystem_dir_it_valid()
1703 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; in spl_filesystem_dir_it_current_data()
1746 static void spl_filesystem_tree_it_dtor(zend_object_iterator *iter TSRMLS_DC) in spl_filesystem_tree_it_dtor()
1748 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; in spl_filesystem_tree_it_dtor()
1764 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; in spl_filesystem_tree_it_current_data()
1804 spl_filesystem_iterator *iterator = (spl_filesystem_iterator *)iter; in spl_filesystem_tree_it_move_forward()
[all …]
H A Dspl_dllist.c932 static void spl_dllist_it_dtor(zend_object_iterator *iter TSRMLS_DC) /* {{{ */ in spl_dllist_it_dtor()
934 spl_dllist_it *iterator = (spl_dllist_it *)iter; in spl_dllist_it_dtor()
938 zend_user_it_invalidate_current(iter TSRMLS_CC); in spl_dllist_it_dtor()
997 static void spl_dllist_it_rewind(zend_object_iterator *iter TSRMLS_DC) /* {{{ */ in spl_dllist_it_rewind()
999 spl_dllist_it *iterator = (spl_dllist_it *)iter; in spl_dllist_it_rewind()
1007 static int spl_dllist_it_valid(zend_object_iterator *iter TSRMLS_DC) /* {{{ */ in spl_dllist_it_valid()
1009 spl_dllist_it *iterator = (spl_dllist_it *)iter; in spl_dllist_it_valid()
1018 spl_dllist_it *iterator = (spl_dllist_it *)iter; in spl_dllist_it_get_current_data()
1031 spl_dllist_it *iterator = (spl_dllist_it *)iter; in spl_dllist_it_get_current_key()
1039 spl_dllist_it *iterator = (spl_dllist_it *)iter; in spl_dllist_it_move_forward()
[all …]
H A Dspl_fixedarray.c889 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; in spl_fixedarray_it_dtor()
891 zend_user_it_invalidate_current(iter TSRMLS_CC); in spl_fixedarray_it_dtor()
900 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; in spl_fixedarray_it_rewind()
904 zend_user_it_rewind(iter TSRMLS_CC); in spl_fixedarray_it_rewind()
913 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; in spl_fixedarray_it_valid()
917 return zend_user_it_valid(iter TSRMLS_CC); in spl_fixedarray_it_valid()
931 spl_fixedarray_it *iterator = (spl_fixedarray_it *)iter; in spl_fixedarray_it_get_current_data()
935 zend_user_it_get_current_data(iter, data TSRMLS_CC); in spl_fixedarray_it_get_current_data()
957 zend_user_it_get_current_key(iter, key TSRMLS_CC); in spl_fixedarray_it_get_current_key()
970 zend_user_it_move_forward(iter TSRMLS_CC); in spl_fixedarray_it_move_forward()
[all …]
H A Dspl_heap.c889 static void spl_heap_it_dtor(zend_object_iterator *iter TSRMLS_DC) /* {{{ */ in spl_heap_it_dtor()
891 spl_heap_it *iterator = (spl_heap_it *)iter; in spl_heap_it_dtor()
893 zend_user_it_invalidate_current(iter TSRMLS_CC); in spl_heap_it_dtor()
900 static void spl_heap_it_rewind(zend_object_iterator *iter TSRMLS_DC) /* {{{ */ in spl_heap_it_rewind()
906 static int spl_heap_it_valid(zend_object_iterator *iter TSRMLS_DC) /* {{{ */ in spl_heap_it_valid()
908 spl_heap_it *iterator = (spl_heap_it *)iter; in spl_heap_it_valid()
916 spl_heap_it *iterator = (spl_heap_it *)iter; in spl_heap_it_get_current_data()
934 spl_heap_it *iterator = (spl_heap_it *)iter; in spl_pqueue_it_get_current_data()
955 spl_heap_it *iterator = (spl_heap_it *)iter; in spl_heap_it_get_current_key()
964 spl_heap_it *iterator = (spl_heap_it *)iter; in spl_heap_it_move_forward()
[all …]
H A Dspl_array.c995 spl_array_it *iterator = (spl_array_it *)iter; in spl_array_it_dtor()
997 zend_user_it_invalidate_current(iter TSRMLS_CC); in spl_array_it_dtor()
1006 spl_array_it *iterator = (spl_array_it *)iter; in spl_array_it_valid()
1011 return zend_user_it_valid(iter TSRMLS_CC); in spl_array_it_valid()
1024 spl_array_it *iterator = (spl_array_it *)iter; in spl_array_it_get_current_data()
1040 spl_array_it *iterator = (spl_array_it *)iter; in spl_array_it_get_current_key()
1045 zend_user_it_get_current_key(iter, key TSRMLS_CC); in spl_array_it_get_current_key()
1063 zend_user_it_move_forward(iter TSRMLS_CC); in spl_array_it_move_forward()
1065 zend_user_it_invalidate_current(iter TSRMLS_CC); in spl_array_it_move_forward()
1108 zend_user_it_rewind(iter TSRMLS_CC); in spl_array_it_rewind()
[all …]
/PHP-5.5/ext/spl/internal/
H A Dmultipleiterator.inc75 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/ext/soap/
H A Dphp_encoding.c2320 zend_object_iterator *iter; in to_xml_array() local
2328 iter = ce->get_iterator(ce, data, 0 TSRMLS_CC); in to_xml_array()
2334 if (iter->funcs->rewind) { in to_xml_array()
2335 iter->funcs->rewind(iter TSRMLS_CC); in to_xml_array()
2341 while (iter->funcs->valid(iter TSRMLS_CC) == SUCCESS) { in to_xml_array()
2346 iter->funcs->get_current_data(iter, &val TSRMLS_CC); in to_xml_array()
2350 if (iter->funcs->get_current_key) { in to_xml_array()
2352 iter->funcs->get_current_key(iter, &key TSRMLS_CC); in to_xml_array()
2364 iter->funcs->move_forward(iter TSRMLS_CC); in to_xml_array()
2370 iter->funcs->dtor(iter TSRMLS_CC); in to_xml_array()
/PHP-5.5/ext/simplexml/
H A Dphp_simplexml.h69 } iter; member
H A Dsimplexml.c118 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 …]
H A Dsxe.c43 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 …]
/PHP-5.5/ext/phar/tests/
H A Dphar_buildfromiterator10.phpt16 $iter = new RecursiveIteratorIterator($dir);
17 …$a = $phar->buildFromIterator(new RegexIterator($iter, '/_\d{3}\.phpt$/'), dirname(__FILE__) . DIR…
/PHP-5.5/ext/phar/
H A Dphar_object.c1433 iter->funcs->get_current_data(iter, &value TSRMLS_CC); in phar_build()
1456 if (iter->funcs->get_current_key) { in phar_build()
1458 iter->funcs->get_current_key(iter, &key TSRMLS_CC); in phar_build()
1584 if (iter->funcs->get_current_key) { in phar_build()
1586 iter->funcs->get_current_key(iter, &key TSRMLS_CC); in phar_build()
1763 MAKE_STD_ZVAL(iter); in PHP_METHOD()
1766 zval_ptr_dtor(&iter); in PHP_METHOD()
1780 zval_ptr_dtor(&iter); in PHP_METHOD()
1787 zval_ptr_dtor(&iter); in PHP_METHOD()
1797 zval_ptr_dtor(&iter); in PHP_METHOD()
[all …]

Completed in 179 milliseconds

123