/PHP-8.2/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 O:11:"ArrayObject":4:{i:0;i:0;i:1;O:11:"ArrayObject":4:{i:0;i:0;i:1;a:2:{i:0;i:1;i:1;i:2;}i:2;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) { 57 object(ArrayObject)#4 (2) { 63 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); 26 object(ArrayObject)#1 (2) { 29 ["storage":"ArrayObject":private]=> 41 object(ArrayObject)#2 (2) { 44 ["storage":"ArrayObject":private]=> 59 ["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… 70 object(ArrayObject)#2 (1) { 71 ["storage":"ArrayObject":private]=> 78 --> Access prop on instance of MyArrayObject with ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_… [all …]
|
H A D | arrayObject_asort_basic1.phpt | 2 SPL: Test ArrayObject::asort() function : basic functionality with array based store 10 echo "*** Testing ArrayObject::asort() : basic functionality ***\n"; 12 $ao1 = new ArrayObject(array(4,2,3)); 13 $ao2 = new ArrayObject(array('a'=>4,'b'=>2,'c'=>3)); 26 *** Testing ArrayObject::asort() : basic functionality *** 28 object(ArrayObject)#%d (1) { 29 ["storage":"ArrayObject":private]=> 40 object(ArrayObject)#%d (1) { 41 ["storage":"ArrayObject":private]=> 52 object(ArrayObject)#%d (1) { [all …]
|
H A D | arrayObject_ksort_basic1.phpt | 2 SPL: Test ArrayObject::ksort() function : basic functionality with array based store 10 echo "*** Testing ArrayObject::ksort() : basic functionality ***\n"; 11 $ao1 = new ArrayObject(array(4,2,3)); 12 $ao2 = new ArrayObject(array('b'=>4,'a'=>2,'q'=>3, 99=>'x')); 25 *** Testing ArrayObject::ksort() : basic functionality *** 27 object(ArrayObject)#%d (1) { 28 ["storage":"ArrayObject":private]=> 39 object(ArrayObject)#2 (1) { 40 ["storage":"ArrayObject":private]=> 53 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 | array_002.phpt | 2 SPL: ArrayObject copy constructor 10 $object = new ArrayObject($array); 13 $arrayObject = new ArrayObject($object); 21 object(ArrayObject)#%d (1) { 22 ["storage":"ArrayObject":private]=> 23 object(ArrayObject)#1 (1) { 24 ["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(); 16 object(ArrayObject)#2 (1) { 17 ["storage":"ArrayObject":private]=> 23 object(ArrayObject)#3 (1) { 24 ["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 | array_018.phpt | 2 SPL: ArrayObject and \0 8 $foo = new ArrayObject(); 20 $foo = new ArrayObject(); 33 object(ArrayObject)#1 (1) { 34 ["storage":"ArrayObject":private]=> 40 object(ArrayObject)#2 (1) { 41 ["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: 66 Warning: Undefined property: ArrayObject::$prop in %s on line %d 72 object(ArrayObject)#2 (1) { 73 ["storage":"ArrayObject":private]=> 80 --> Access prop on instance of MyArrayObject with ArrayObject::STD_PROP_LIST: [all …]
|
H A D | array_015.phpt | 6 $ar = new ArrayObject(); 42 object(ArrayObject)#%d (1) { 43 %s"storage"%s"ArrayObject":private]=> 58 object(ArrayObject)#%d (1) { 59 %s"storage"%s"ArrayObject":private]=> 73 object(ArrayObject)#%d (1) { 74 %s"storage"%s"ArrayObject":private]=> 83 object(ArrayObject)#%d (1) { 84 %s"storage"%s"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 10 echo "*** Testing ArrayObject::natcasesort() : basic functionality ***\n"; 12 $ao1 = new ArrayObject(array('boo10','boo1','boo2','boo22','BOO5')); 13 $ao2 = new ArrayObject(array('a'=>'boo10','b'=>'boo1','c'=>'boo2','d'=>'boo22','e'=>'BOO5')); 24 *** Testing ArrayObject::natcasesort() : basic functionality *** 26 object(ArrayObject)#1 (1) { 27 ["storage":"ArrayObject":private]=> 41 ArrayObject::natcasesort() expects exactly 0 arguments, 1 given 42 object(ArrayObject)#2 (1) { 43 ["storage":"ArrayObject":private]=>
|
H A D | arrayObject_natsort_basic1.phpt | 2 SPL: Test ArrayObject::natsort() function : basic functionality 10 echo "*** Testing ArrayObject::natsort() : basic functionality ***\n"; 12 $ao1 = new ArrayObject(array('boo10','boo1','boo2','boo22','BOO5')); 13 $ao2 = new ArrayObject(array('a'=>'boo10','b'=>'boo1','c'=>'boo2','d'=>'boo22','e'=>'BOO5')); 24 *** Testing ArrayObject::natsort() : basic functionality *** 26 object(ArrayObject)#1 (1) { 27 ["storage":"ArrayObject":private]=> 41 ArrayObject::natsort() expects exactly 0 arguments, 1 given 42 object(ArrayObject)#2 (1) { 43 ["storage":"ArrayObject":private]=>
|
H A D | array_001.phpt | 2 SPL: ArrayObject 7 $ar = new ArrayObject($ar); 37 object(ArrayObject)#%d (1) { 38 ["storage":"ArrayObject":private]=> 63 object(ArrayObject)#%d (1) { 64 ["storage":"ArrayObject":private]=> 85 object(ArrayObject)#%d (1) { 86 ["storage":"ArrayObject":private]=> 94 object(ArrayObject)#%d (1) { 95 ["storage":"ArrayObject":private]=>
|
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) { 182 Wrapping ArrayObject: [all …]
|
H A D | arrayObject_magicMethods2.phpt | 33 $ao = new ArrayObject($obj); 40 echo " Wrapping ArrayObject:\n"; 49 echo " Wrapping ArrayObject:\n"; 87 Wrapping ArrayObject: 88 object(ArrayObject)#2 (3) { 123 Wrapping ArrayObject: 124 object(ArrayObject)#2 (3) { 157 Wrapping ArrayObject: 158 object(ArrayObject)#2 (3) { 188 Wrapping ArrayObject: [all …]
|
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: 70 object(ArrayObject)#2 (1) { 71 ["storage":"ArrayObject":private]=> 78 --> Access prop on instance of MyArrayObject with ArrayObject::ARRAY_AS_PROPS: [all …]
|
/PHP-8.2/ext/spl/ |
H A D | spl_array_arginfo.h | 158 ZEND_METHOD(ArrayObject, offsetGet); 159 ZEND_METHOD(ArrayObject, offsetSet); 161 ZEND_METHOD(ArrayObject, append); 163 ZEND_METHOD(ArrayObject, count); 164 ZEND_METHOD(ArrayObject, getFlags); 165 ZEND_METHOD(ArrayObject, setFlags); 166 ZEND_METHOD(ArrayObject, asort); 167 ZEND_METHOD(ArrayObject, ksort); 168 ZEND_METHOD(ArrayObject, uasort); 169 ZEND_METHOD(ArrayObject, uksort); [all …]
|
/PHP-8.2/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);
|