/PHP-7.3/ext/spl/tests/ |
H A D | arrayObject_exchangeArray_basic2.phpt | 6 $ao = new ArrayObject(); 19 $obj = new ArrayObject(array('key'=>'ArrayObject element')); 31 $obj = new ArrayObject(new ArrayObject(array('key'=>'nested ArrayObject element'))); 39 object(ArrayObject)#%d (1) { 49 object(ArrayObject)#%d (1) { 57 --> exchangeArray(ArrayObject): 59 object(ArrayObject)#%d (1) { 61 object(ArrayObject)#%d (1) { 72 object(ArrayObject)#%d (1) { 85 object(ArrayObject)#%d (1) { [all …]
|
H A D | arrayObject___construct_basic1.phpt | 2 SPL: ArrayObject::__construct basic usage. 6 var_dump(new ArrayObject()); 11 var_dump(new ArrayObject($a)); 17 var_dump(new ArrayObject(new ArrayObject($a))); 21 object(ArrayObject)#1 (1) { 22 ["storage":"ArrayObject":private]=> 27 object(ArrayObject)#2 (1) { 35 object(ArrayObject)#2 (1) { 42 --> Nested ArrayObject argument: 43 object(ArrayObject)#2 (1) { [all …]
|
H A D | arrayObject_getFlags_basic1.phpt | 2 SPL: ArrayObject::getFlags() basic usage 5 $ao = new ArrayObject(new ArrayObject(new stdClass)); 8 $ao = new ArrayObject(new ArrayObject(array(1,2,3)), ArrayObject::STD_PROP_LIST); 11 $ao = new ArrayObject(new ArrayIterator(new ArrayObject()), ArrayObject::ARRAY_AS_PROPS); 14 $ao = new ArrayObject(new ArrayObject(), ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS);
|
H A D | array_025.phpt | 2 SPL: ArrayObject serialize with an object as storage 5 $obj1 = new ArrayObject(new ArrayObject(array(1,2))); 14 ArrayObject Object 16 [storage:ArrayObject:private] => ArrayObject Object 18 [storage:ArrayObject:private] => Array 27 C:11:"ArrayObject":76:{x:i:0;C:11:"ArrayObject":37:{x:i:0;a:2:{i:0;i:1;i:1;i:2;};m:a:0:{}};m:a:0:{}} 28 ArrayObject Object 30 [storage:ArrayObject:private] => ArrayObject Object 32 [storage:ArrayObject:private] => Array
|
H A D | ArrayObject_sort_different_backing_storage.phpt | 7 $ao = new ArrayObject($obj); 11 $ao2 = new ArrayObject($ao); 15 $ao3 = new ArrayObject(); 22 $ao4 = new ArrayObject([]); 32 object(ArrayObject)#2 (1) { 33 ["storage":"ArrayObject":private]=> 41 object(ArrayObject)#3 (1) { 43 object(ArrayObject)#2 (1) { 53 object(ArrayObject)#4 (2) { 59 object(ArrayObject)#5 (1) { [all …]
|
H A D | arrayObject___construct_basic6.phpt | 2 SPL: ArrayObject::__construct: check impact of ArrayObject::STD_PROP_LIST on var_dump. 5 class MyArrayObject extends ArrayObject { 10 $ao = new ArrayObject(array(1,2,3)); 14 $ao = new ArrayObject(array(1,2,3), ArrayObject::STD_PROP_LIST); 21 $ao = new MyArrayObject(array(1,2,3), ArrayObject::STD_PROP_LIST); 25 object(ArrayObject)#1 (2) { 28 ["storage":"ArrayObject":private]=> 38 object(ArrayObject)#2 (2) { 41 ["storage":"ArrayObject":private]=> 56 ["storage":"ArrayObject":private]=> [all …]
|
H A D | arrayObject___construct_basic5.phpt | 2 SPL: ArrayObject::__construct basic usage with ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PRO… 9 class MyArrayObject extends ArrayObject { 13 echo "\n--> Access prop on instance of ArrayObject with ArrayObject::STD_PROP_LIST|ArrayObject::ARR… 15 $ao = new ArrayObject($c, ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS); 18 echo "\n--> Access prop on instance of MyArrayObject with ArrayObject::STD_PROP_LIST|ArrayObject::A… 20 $ao = new MyArrayObject($c, ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS); 50 --> Access prop on instance of ArrayObject with ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PR… 72 object(ArrayObject)#2 (1) { 73 ["storage":"ArrayObject":private]=> 80 --> Access prop on instance of MyArrayObject with ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_… [all …]
|
H A D | arrayObject_asort_basic1.phpt | 5 /* Prototype : int ArrayObject::asort() 12 echo "*** Testing ArrayObject::asort() : basic functionality ***\n"; 14 $ao1 = new ArrayObject(array(4,2,3)); 15 $ao2 = new ArrayObject(array('a'=>4,'b'=>2,'c'=>3)); 25 *** Testing ArrayObject::asort() : basic functionality *** 27 object(ArrayObject)#%d (1) { 28 ["storage":"ArrayObject":private]=> 41 object(ArrayObject)#%d (1) { 42 ["storage":"ArrayObject":private]=> 53 object(ArrayObject)#%d (1) { [all …]
|
H A D | arrayObject_ksort_basic1.phpt | 5 /* Prototype : int ArrayObject::ksort() 12 echo "*** Testing ArrayObject::ksort() : basic functionality ***\n"; 13 $ao1 = new ArrayObject(array(4,2,3)); 14 $ao2 = new ArrayObject(array('b'=>4,'a'=>2,'q'=>3, 99=>'x')); 24 *** Testing ArrayObject::ksort() : basic functionality *** 26 object(ArrayObject)#%d (1) { 27 ["storage":"ArrayObject":private]=> 40 object(ArrayObject)#2 (1) { 41 ["storage":"ArrayObject":private]=> 54 object(ArrayObject)#%d (1) { [all …]
|
H A D | bug67360.phpt | 2 Bug #67360 (Missing element after ArrayObject::getIterator) 7 $ArrayObject = new ArrayObject($array); 8 var_dump($ArrayObject); 9 $Iterator = $ArrayObject->getIterator(); 15 object(ArrayObject)#%d (1) { 16 ["storage":"ArrayObject":private]=>
|
H A D | bug77298.phpt | 2 Bug #77298 (segfault occurs when add property to unserialized ArrayObject) 5 $o = new ArrayObject(); 10 $o3 = new ArrayObject(); 15 object(ArrayObject)#2 (1) { 16 ["storage":"ArrayObject":private]=> 22 object(ArrayObject)#3 (1) { 23 ["storage":"ArrayObject":private]=>
|
H A D | array_002.phpt | 2 SPL: ArrayObject copy constructor 10 $object = new ArrayObject($array); 13 $arrayObject = new ArrayObject($object); 23 object(ArrayObject)#%d (1) { 24 ["storage":"ArrayObject":private]=> 25 object(ArrayObject)#1 (1) { 26 ["storage":"ArrayObject":private]=>
|
H A D | ArrayObject_clone_other_std_props.phpt | 2 Clone ArrayObject using other with STD_PROP_LIST 6 $a = new ArrayObject([1, 2, 3], ArrayObject::STD_PROP_LIST); 7 $b = new ArrayObject($a); 13 object(ArrayObject)#3 (1) { 14 ["storage":"ArrayObject":private]=>
|
H A D | arrayObject_natsort_basic1.phpt | 2 SPL: Test ArrayObject::natsort() function : basic functionality 5 /* Prototype : int ArrayObject::natsort() 12 echo "*** Testing ArrayObject::natsort() : basic functionality ***\n"; 14 $ao1 = new ArrayObject(array('boo10','boo1','boo2','boo22','BOO5')); 15 $ao2 = new ArrayObject(array('a'=>'boo10','b'=>'boo1','c'=>'boo2','d'=>'boo22','e'=>'BOO5')); 23 *** Testing ArrayObject::natsort() : basic functionality *** 25 object(ArrayObject)#1 (1) { 26 ["storage":"ArrayObject":private]=> 41 object(ArrayObject)#2 (1) { 42 ["storage":"ArrayObject":private]=>
|
H A D | array_018.phpt | 2 SPL: ArrayObject and \0 8 $foo = new ArrayObject(); 20 $foo = new ArrayObject(); 34 object(ArrayObject)#1 (1) { 35 ["storage":"ArrayObject":private]=> 41 object(ArrayObject)#2 (1) { 42 ["storage":"ArrayObject":private]=>
|
H A D | bug73686.phpt | 2 Bug #73686 (Adding settype()ed values to ArrayObject results in references) 6 $ao = new ArrayObject; 15 $ao = new ArrayObject; 24 object(ArrayObject)#%d (1) { 25 ["storage":"ArrayObject":private]=> 35 object(ArrayObject)#%d (1) { 36 ["storage":"ArrayObject":private]=>
|
H A D | arrayObject_natcasesort_basic1.phpt | 2 SPL: Test ArrayObject::natcasesort() function : basic functionality 5 /* Prototype : int ArrayObject::natcasesort() 12 echo "*** Testing ArrayObject::natcasesort() : basic functionality ***\n"; 14 $ao1 = new ArrayObject(array('boo10','boo1','boo2','boo22','BOO5')); 15 $ao2 = new ArrayObject(array('a'=>'boo10','b'=>'boo1','c'=>'boo2','d'=>'boo22','e'=>'BOO5')); 23 *** Testing ArrayObject::natcasesort() : basic functionality *** 25 object(ArrayObject)#1 (1) { 26 ["storage":"ArrayObject":private]=> 41 object(ArrayObject)#2 (1) { 42 ["storage":"ArrayObject":private]=>
|
H A D | arrayObject___construct_basic3.phpt | 2 SPL: ArrayObject::__construct basic usage with ArrayObject::STD_PROP_LIST. 9 class MyArrayObject extends ArrayObject { 13 echo "\n--> Access prop on instance of ArrayObject with ArrayObject::STD_PROP_LIST:\n"; 15 $ao = new ArrayObject($c, ArrayObject::STD_PROP_LIST); 20 $ao = new MyArrayObject($c, ArrayObject::STD_PROP_LIST); 50 --> Access prop on instance of ArrayObject with ArrayObject::STD_PROP_LIST: 64 Notice: Undefined property: ArrayObject::$prop in %s on line 40 70 object(ArrayObject)#2 (1) { 71 ["storage":"ArrayObject":private]=> 78 --> Access prop on instance of MyArrayObject with ArrayObject::STD_PROP_LIST: [all …]
|
H A D | array_015.phpt | 6 $ar = new ArrayObject(); 44 object(ArrayObject)#%d (1) { 45 %s"storage"%s"ArrayObject":private]=> 60 object(ArrayObject)#%d (1) { 61 %s"storage"%s"ArrayObject":private]=> 75 object(ArrayObject)#%d (1) { 76 %s"storage"%s"ArrayObject":private]=> 85 object(ArrayObject)#%d (1) { 86 %s"storage"%s"ArrayObject":private]=>
|
H A D | array_001.phpt | 2 SPL: ArrayObject 7 $ar = new ArrayObject($ar); 39 object(ArrayObject)#%d (1) { 40 ["storage":"ArrayObject":private]=> 65 object(ArrayObject)#%d (1) { 66 ["storage":"ArrayObject":private]=> 91 object(ArrayObject)#%d (1) { 92 ["storage":"ArrayObject":private]=> 100 object(ArrayObject)#%d (1) { 101 ["storage":"ArrayObject":private]=>
|
H A D | arrayObject___construct_basic4.phpt | 2 SPL: ArrayObject::__construct basic usage with ArrayObject::ARRAY_AS_PROPS. Currently fails on php.… 9 class MyArrayObject extends ArrayObject { 13 echo "\n--> Access prop on instance of ArrayObject with ArrayObject::ARRAY_AS_PROPS:\n"; 15 $ao = new ArrayObject($c, ArrayObject::ARRAY_AS_PROPS); 18 echo "\n--> Access prop on instance of MyArrayObject with ArrayObject::ARRAY_AS_PROPS:\n"; 20 $ao = new MyArrayObject($c, ArrayObject::ARRAY_AS_PROPS); 50 --> Access prop on instance of ArrayObject with ArrayObject::ARRAY_AS_PROPS: 72 object(ArrayObject)#2 (1) { 73 ["storage":"ArrayObject":private]=> 80 --> Access prop on instance of MyArrayObject with ArrayObject::ARRAY_AS_PROPS: [all …]
|
H A D | arrayObject_getFlags_basic2.phpt | 2 SPL: ArrayObject::getFlags() - ensure flags are passed on to nested array objects and iterators. 5 $ao = new ArrayObject(array(), ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS); 8 $ao2 = new ArrayObject($ao); 15 $ao2 = new ArrayObject($ao, 0);
|
H A D | arrayObject_magicMethods2.phpt | 33 $ao = new ArrayObject($obj); 40 echo " Wrapping ArrayObject:\n"; 49 echo " Wrapping ArrayObject:\n"; 83 Wrapping ArrayObject: 84 object(ArrayObject)#2 (3) { 119 Wrapping ArrayObject: 120 object(ArrayObject)#2 (3) { 153 Wrapping ArrayObject: 154 object(ArrayObject)#2 (3) { 184 Wrapping ArrayObject: [all …]
|
H A D | arrayObject_magicMethods3.phpt | 2 …ArrayObject: ensure a wrapped object's magic methods for property access are not invoked when mani… 33 $ao = new ArrayObject($obj, ArrayObject::ARRAY_AS_PROPS); 40 echo " Wrapping ArrayObject:\n"; 85 Wrapping ArrayObject: 86 object(ArrayObject)#2 (1) { 121 Wrapping ArrayObject: 122 object(ArrayObject)#2 (1) { 155 Wrapping ArrayObject: 156 object(ArrayObject)#2 (1) { 184 Wrapping ArrayObject: [all …]
|
/PHP-7.3/Zend/tests/ |
H A D | ns_036.phpt | 7 class ArrayObject { 10 function f1($x = ArrayObject::STD_PROP_LIST) { 13 function f2($x = \ArrayObject::STD_PROP_LIST) { 16 function f3($x = \A\ArrayObject::STD_PROP_LIST) { 19 function f4($x = B\ArrayObject::STD_PROP_LIST) { 22 var_dump(ArrayObject::STD_PROP_LIST); 23 var_dump(\ArrayObject::STD_PROP_LIST); 24 var_dump(B\ArrayObject::STD_PROP_LIST); 25 var_dump(\A\ArrayObject::STD_PROP_LIST);
|