Home
last modified time | relevance | path

Searched refs:ArrayObject (Results 1 – 25 of 110) sorted by relevance

12345

/PHP-5.3/ext/spl/tests/
H A DarrayObject_exchangeArray_basic2.phpt6 $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 DarrayObject___construct_basic1.phpt2 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 DarrayObject_getFlags_basic1.phpt2 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 Darray_025.phpt2 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 DarrayObject___construct_basic6.phpt2 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 DarrayObject___construct_basic5.phpt2 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 DarrayObject_asort_basic1.phpt2 SPL: Test ArrayObject::asort() function : basic functionality with array based store
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));
23 *** Testing ArrayObject::asort() : basic functionality ***
25 object(ArrayObject)#1 (1) {
26 ["storage":"ArrayObject":private]=>
37 object(ArrayObject)#2 (1) {
38 ["storage":"ArrayObject":private]=>
H A DarrayObject_ksort_basic1.phpt2 SPL: Test ArrayObject::ksort() function : basic functionality with array based store
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'));
22 *** Testing ArrayObject::ksort() : basic functionality ***
24 object(ArrayObject)#1 (1) {
25 ["storage":"ArrayObject":private]=>
36 object(ArrayObject)#2 (1) {
37 ["storage":"ArrayObject":private]=>
H A Darray_002.phpt2 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 DarrayObject_natsort_basic1.phpt2 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 Darray_018.phpt2 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 DarrayObject___construct_basic3.phpt2 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 DarrayObject_natcasesort_basic1.phpt2 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 Darray_001.phpt2 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 DarrayObject___construct_basic4.phpt2 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 DarrayObject_magicMethods2.phpt33 $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 DarrayObject_magicMethods3.phpt2ArrayObject: 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 …]
H A DarrayObject_getFlags_basic2.phpt2 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 DarrayObject_magicMethods1.phpt33 $ao = new ArrayObject($obj);
40 echo " Wrapping ArrayObject:\n";
49 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 …]
H A DarrayObject_uasort_basic1.phpt2 SPL: Test ArrayObject::uasort() function : basic functionality
5 /* Prototype : int ArrayObject::uasort(callback cmp_function)
12 echo "*** Testing ArrayObject::uasort() : basic functionality ***\n";
25 $ao = new ArrayObject(array(2,3,1));
32 *** Testing ArrayObject::uasort() : basic functionality ***
33 object(ArrayObject)#1 (1) {
34 ["storage":"ArrayObject":private]=>
H A DarrayObject_uksort_basic1.phpt2 Test ArrayObject::uksort() function : basic functionality
5 /* Prototype : int ArrayObject::uksort(callback cmp_function)
12 echo "*** Testing ArrayObject::uksort() : basic functionality ***\n";
24 $ao = new ArrayObject(array(3=>0, 2=>1, 5=>2, 6=>3, 1=>4));
31 *** Testing ArrayObject::uksort() : basic functionality ***
32 object(ArrayObject)#1 (1) {
33 ["storage":"ArrayObject":private]=>
H A Darray_015.phpt6 $ar = new ArrayObject();
44 object(ArrayObject)#%d (1) {
45 %s"storage"%s"ArrayObject":private]=>
62 object(ArrayObject)#%d (1) {
63 %s"storage"%s"ArrayObject":private]=>
77 object(ArrayObject)#%d (1) {
78 %s"storage"%s"ArrayObject":private]=>
92 object(ArrayObject)#%d (1) {
93 %s"storage"%s"ArrayObject":private]=>
H A DarrayObject_asort_basic2.phpt2 SPL: Test ArrayObject::asort() function : basic functionality with object based store
5 /* Prototype : int ArrayObject::asort()
12 echo "*** Testing ArrayObject::asort() : basic functionality ***\n";
21 $ao1 = new ArrayObject($c);
27 *** Testing ArrayObject::asort() : basic functionality ***
29 object(ArrayObject)#2 (1) {
30 ["storage":"ArrayObject":private]=>
H A DarrayObject_ksort_basic2.phpt2 SPL: Test ArrayObject::ksort() function : basic functionality with object base store
5 /* Prototype : int ArrayObject::ksort()
12 echo "*** Testing ArrayObject::ksort() : basic functionality ***\n";
21 $ao1 = new ArrayObject($c);
27 *** Testing ArrayObject::ksort() : basic functionality ***
29 object(ArrayObject)#2 (1) {
30 ["storage":"ArrayObject":private]=>
/PHP-5.3/Zend/tests/
H A Dns_036.phpt9 class ArrayObject {
12 function f1($x = ArrayObject::STD_PROP_LIST) {
15 function f2($x = \ArrayObject::STD_PROP_LIST) {
18 function f3($x = \A\ArrayObject::STD_PROP_LIST) {
21 function f4($x = B\ArrayObject::STD_PROP_LIST) {
24 var_dump(ArrayObject::STD_PROP_LIST);
25 var_dump(\ArrayObject::STD_PROP_LIST);
26 var_dump(B\ArrayObject::STD_PROP_LIST);
27 var_dump(\A\ArrayObject::STD_PROP_LIST);

Completed in 59 milliseconds

12345