/php-src/ext/spl/tests/ |
H A D | iterator_042.phpt | 2 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 D | array_020.phpt | 2 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 D | iterator_049.phpt | 2 SPL: ArrayIterator with NULL key 6 $ar = new ArrayIterator(array(NULL=>NULL)); 12 object(ArrayIterator)#%d (1) { 13 ["storage":"ArrayIterator":private]=>
|
H A D | arrayIterator_ksort_basic1.phpt | 2 Bug #79653: Unexpected error for ArrayIterator::ksort() 7 $arrIter = new ArrayIterator($array); 14 object(ArrayIterator)#1 (1) { 15 ["storage":"ArrayIterator":private]=>
|
H A D | bug42654.phpt | 27 ["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 D | iterator_049b.phpt | 2 SPL: ArrayIterator with NULL key 6 $ar = new ArrayIterator(array( 19 object(ArrayIterator)#%d (1) { 20 ["storage":"ArrayIterator":private]=>
|
H A D | arrayObject_exchangeArray_basic2.phpt | 24 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 D | bug36941.phpt | 2 Bug #36941 (ArrayIterator does not clone itself) 17 ===ArrayIterator=== 19 $a = new ArrayIterator(); 38 ===ArrayIterator===
|
H A D | arrayObject_getIteratorClass_basic1.phpt | 5 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 D | arrayObject_count_basic1.phpt | 2 SPL: ArrayObject::count() and ArrayIterator::count() basic functionality. 29 ==ArrayIterator== 31 class D extends ArrayIterator { 38 $ao = new ArrayIterator; 64 ==ArrayIterator==
|
H A D | array_019.phpt | 2 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 D | array_011.phpt | 2 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 D | array_013.phpt | 2 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 D | iterator_035.phpt | 2 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 D | iterator_055.phpt | 18 $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 D | iterator_054.phpt | 18 $ar = new ArrayIterator(array('1','1,2','1,2,3','',NULL,array(),'FooBar',',',',,')); 59 object(ArrayIterator)#%d (1) { 60 ["storage":"ArrayIterator":private]=>
|
H A D | bug65387.phpt | 6 $it = new ArrayIterator([1, 2, 3]); 19 $it = new ArrayIterator([1, 2, 3]); 33 $it = new ArrayIterator(); 45 $it = new ArrayIterator();
|
H A D | gh8366.phpt | 2 Bug GH-8366 (ArrayIterator may leak when calling __construct()) 5 $it = new \ArrayIterator();
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_properties_078.phpt | 26 $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 D | typed_properties_079.phpt | 14 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-src/Zend/tests/return_types/ |
H A D | inheritance009.phpt | 9 return new ArrayIterator([1, 2]); 32 object(ArrayIterator)#%d (1) { 33 ["storage":"ArrayIterator":private]=>
|
/php-src/Zend/tests/type_declarations/iterable/ |
H A D | iterable_001.phpt | 18 test(new ArrayIterator([1, 2, 3])); 39 object(ArrayIterator)#1 (1) { 40 ["storage":"ArrayIterator":private]=>
|
/php-src/Zend/tests/named_params/ |
H A D | unpack.phpt | 35 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-src/ext/zend_test/tests/ |
H A D | internal_dnf_arguments.phpt | 21 $obj = new \ArrayIterator([]); 30 object(ArrayIterator)#5 (1) { 31 ["storage":"ArrayIterator":private]=>
|
/php-src/ext/spl/ |
H A D | spl_array_arginfo.h | 181 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 …]
|