Home
last modified time | relevance | path

Searched refs:ArrayIterator (Results 1 – 25 of 178) sorted by relevance

12345678

/PHP-8.4/ext/spl/tests/
H A Diterator_042.phpt2 SPL: AppendIterator and its ArrayIterator
21 $it->append(new ArrayIterator(array(1)));
43 object(ArrayIterator)#%d (1) {
44 %s"storage"%s"ArrayIterator":private]=>
47 object(ArrayIterator)#%d (1) {
55 object(ArrayIterator)#%d (1) {
66 object(ArrayIterator)#%d (1) {
67 %s"storage"%s"ArrayIterator":private]=>
70 object(ArrayIterator)#%d (1) {
78 object(ArrayIterator)#%d (1) {
[all …]
H A Darray_020.phpt2 SPL: ArrayIterator overloading
6 class ArrayIteratorEx extends ArrayIterator
11 ArrayIterator::rewind();
17 return ArrayIterator::valid();
23 return ArrayIterator::key();
29 return ArrayIterator::current();
35 ArrayIterator::next();
H A Diterator_049.phpt2 SPL: ArrayIterator with NULL key
6 $ar = new ArrayIterator(array(NULL=>NULL));
12 object(ArrayIterator)#%d (1) {
13 ["storage":"ArrayIterator":private]=>
H A DarrayIterator_ksort_basic1.phpt2 Bug #79653: Unexpected error for ArrayIterator::ksort()
7 $arrIter = new ArrayIterator($array);
14 object(ArrayIterator)#1 (1) {
15 ["storage":"ArrayIterator":private]=>
H A Dbug42654.phpt27 ["storage":"ArrayIterator":private]=>
46 ["storage":"ArrayIterator":private]=>
66 ["storage":"ArrayIterator":private]=>
78 ["storage":"ArrayIterator":private]=>
91 ["storage":"ArrayIterator":private]=>
98 ["storage":"ArrayIterator":private]=>
106 ["storage":"ArrayIterator":private]=>
125 ["storage":"ArrayIterator":private]=>
H A Diterator_049b.phpt2 SPL: ArrayIterator with NULL key
6 $ar = new ArrayIterator(array(
19 object(ArrayIterator)#%d (1) {
20 ["storage":"ArrayIterator":private]=>
H A DarrayObject_exchangeArray_basic2.phpt24 echo "\n--> exchangeArray(ArrayIterator):\n";
25 $obj = new ArrayIterator(array('key'=>'ArrayIterator element'));
70 --> exchangeArray(ArrayIterator):
71 string(21) "ArrayIterator element"
74 object(ArrayIterator)#%d (1) {
75 ["storage":"ArrayIterator":private]=>
78 string(21) "ArrayIterator element"
H A Dbug36941.phpt2 Bug #36941 (ArrayIterator does not clone itself)
17 ===ArrayIterator===
19 $a = new ArrayIterator();
38 ===ArrayIterator===
H A DarrayObject_getIteratorClass_basic1.phpt5 class MyIterator extends ArrayIterator {
52 echo "\n\n--> Access using ArrayIterator:\n";
53 var_dump($ao->setIteratorClass("ArrayIterator"));
65 ["storage":"ArrayIterator":private]=>
97 --> Access using ArrayIterator:
99 string(13) "ArrayIterator"
100 object(ArrayIterator)#3 (1) {
101 ["storage":"ArrayIterator":private]=>
H A DarrayObject_count_basic1.phpt2 SPL: ArrayObject::count() and ArrayIterator::count() basic functionality.
29 ==ArrayIterator==
31 class D extends ArrayIterator {
38 $ao = new ArrayIterator;
64 ==ArrayIterator==
H A Darray_019.phpt2 SPL: ArrayIterator and foreach by reference
7 $ar = new ArrayIterator(array(2)); foreach($ar as &$v) var_dump($v);
10 class ArrayIteratorEx extends ArrayIterator
14 return ArrayIterator::current();
H A Darray_011.phpt2 SPL: ArrayIterator, LimitIterator and string keys
7 //foreach (new ArrayIterator($a) as $k => $v)
8 foreach (new LimitIterator(new ArrayIterator($a), 1, 3) as $k => $v)
H A Darray_013.phpt2 SPL: ArrayIterator::append
14 $it = new ArrayIterator($a);
43 $it = new ArrayIterator($o);
78 Fatal error: Uncaught Error: Cannot append properties to objects, use ArrayIterator::offsetSet() in…
80 #0 %s(%d): ArrayIterator->append('three')
H A Diterator_035.phpt2 SPL: ArrayIterator and values assigned by reference
8 $a = new ArrayIterator();
15 Notice: Indirect modification of overloaded element of ArrayIterator has no effect in %s on line %d
H A Diterator_055.phpt18 $ar = new ArrayIterator(array('1'=>0,'1,2'=>1,'1,2,3'=>2,0=>3,'FooBar'=>4,','=>5,',,'=>6));
41 object(ArrayIterator)#%d (1) {
42 ["storage":"ArrayIterator":private]=>
H A Diterator_054.phpt18 $ar = new ArrayIterator(array('1','1,2','1,2,3','',NULL,array(),'FooBar',',',',,'));
59 object(ArrayIterator)#%d (1) {
60 ["storage":"ArrayIterator":private]=>
H A Dbug65387.phpt6 $it = new ArrayIterator([1, 2, 3]);
19 $it = new ArrayIterator([1, 2, 3]);
33 $it = new ArrayIterator();
45 $it = new ArrayIterator();
H A Dgh8366.phpt2 Bug GH-8366 (ArrayIterator may leak when calling __construct())
5 $it = new \ArrayIterator();
/PHP-8.4/Zend/tests/type_declarations/
H A Dtyped_properties_078.phpt26 $ref = new ArrayIterator();
28 var_dump($ref instanceof ArrayIterator);
39 var_dump($ref instanceof ArrayIterator);
41 $ref = new ArrayIterator();
42 var_dump($ref instanceof ArrayIterator);
55 string(92) "Cannot assign ArrayIterator to reference held by property class@anonymous::$a of type ?…
H A Dtyped_properties_079.phpt14 A::$it = new ArrayIterator();
20 A::$it = new ArrayIterator();
29 string(78) "Cannot assign ArrayIterator to reference held by property A::$a of type ?array"
/PHP-8.4/Zend/tests/return_types/
H A Dinheritance009.phpt9 return new ArrayIterator([1, 2]);
32 object(ArrayIterator)#%d (1) {
33 ["storage":"ArrayIterator":private]=>
/PHP-8.4/Zend/tests/type_declarations/iterable/
H A Diterable_001.phpt18 test(new ArrayIterator([1, 2, 3]));
39 object(ArrayIterator)#1 (1) {
40 ["storage":"ArrayIterator":private]=>
/PHP-8.4/Zend/tests/named_params/
H A Dunpack.phpt35 test(...new ArrayIterator(['a' => 'a', 'b' => 'b', 'c' => 'c']));
36 test(...new ArrayIterator(['c' => 'c', 'b' => 'b', 'a' => 'a']));
37 test(...new ArrayIterator(['a', 'b' => 'b', 'c' => 'c']));
40 test(...new ArrayIterator(['a', 'b' => 'b', 'c']));
46 test(...new ArrayIterator(['a', 'a' => 'a']));
53 test2(...new ArrayIterator($ary));
/PHP-8.4/ext/zend_test/tests/
H A Dinternal_dnf_arguments.phpt21 $obj = new \ArrayIterator([]);
30 object(ArrayIterator)#5 (1) {
31 ["storage":"ArrayIterator":private]=>
/PHP-8.4/ext/spl/
H A Dspl_array_arginfo.h181 ZEND_METHOD(ArrayIterator, __construct);
182 ZEND_METHOD(ArrayIterator, rewind);
183 ZEND_METHOD(ArrayIterator, current);
184 ZEND_METHOD(ArrayIterator, key);
185 ZEND_METHOD(ArrayIterator, next);
186 ZEND_METHOD(ArrayIterator, valid);
187 ZEND_METHOD(ArrayIterator, seek);
243 ZEND_ME(ArrayIterator, key, arginfo_class_ArrayIterator_key, ZEND_ACC_PUBLIC)
244 ZEND_ME(ArrayIterator, next, arginfo_class_ArrayIterator_next, ZEND_ACC_PUBLIC)
245 ZEND_ME(ArrayIterator, valid, arginfo_class_ArrayIterator_valid, ZEND_ACC_PUBLIC)
[all …]

Completed in 24 milliseconds

12345678