--getParameters--
array(3) {
[0]=>
- &object(ReflectionParameter)#2 (1) {
+ object(ReflectionParameter)#2 (1) {
["name"]=>
string(1) "a"
}
[1]=>
- &object(ReflectionParameter)#3 (1) {
+ object(ReflectionParameter)#3 (1) {
["name"]=>
string(1) "b"
}
[2]=>
- &object(ReflectionParameter)#4 (1) {
+ object(ReflectionParameter)#4 (1) {
["name"]=>
string(1) "c"
}
--getParameters--
array(3) {
[0]=>
- &object(ReflectionParameter)#2 (1) {
+ object(ReflectionParameter)#2 (1) {
["name"]=>
string(1) "a"
}
[1]=>
- &object(ReflectionParameter)#3 (1) {
+ object(ReflectionParameter)#3 (1) {
["name"]=>
string(1) "b"
}
[2]=>
- &object(ReflectionParameter)#4 (1) {
+ object(ReflectionParameter)#4 (1) {
["name"]=>
string(1) "c"
}
An object is in an array and is referenced. As expected, var_dumping the array shows '&':
array(1) {
[0]=>
- &object(stdClass)#%d (0) {
+ object(stdClass)#%d (0) {
}
}
Naturally, this remains true if we modify the object:
array(1) {
[0]=>
- &object(stdClass)#%d (1) {
+ object(stdClass)#%d (1) {
["x"]=>
int(1)
}
Var_dumping this array shows that the elements are referenced. By what?
array(1) {
["I"]=>
- &object(ReflectionClass)#%d (1) {
+ object(ReflectionClass)#%d (1) {
["name"]=>
string(1) "I"
}
Reflecting on class pubf:
array(2) {
[0]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "f"
[%u|b%"class"]=>
%unicode|string%(4) "pubf"
}
[1]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "s"
[%u|b%"class"]=>
Reflecting on class subpubf:
array(2) {
[0]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "f"
[%u|b%"class"]=>
%unicode|string%(4) "pubf"
}
[1]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "s"
[%u|b%"class"]=>
Reflecting on class protf:
array(2) {
[0]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "f"
[%u|b%"class"]=>
%unicode|string%(5) "protf"
}
[1]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "s"
[%u|b%"class"]=>
Reflecting on class subprotf:
array(2) {
[0]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "f"
[%u|b%"class"]=>
%unicode|string%(5) "protf"
}
[1]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "s"
[%u|b%"class"]=>
Reflecting on class privf:
array(2) {
[0]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "f"
[%u|b%"class"]=>
%unicode|string%(5) "privf"
}
[1]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "s"
[%u|b%"class"]=>
Reflecting on class subprivf:
array(2) {
[0]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "f"
[%u|b%"class"]=>
%unicode|string%(5) "privf"
}
[1]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "s"
[%u|b%"class"]=>
}
Public methods:array(4) {
[0]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(5) "pubf1"
["class"]=>
string(1) "C"
}
[1]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(5) "pubf2"
["class"]=>
string(1) "C"
}
[2]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(6) "pubsf1"
["class"]=>
string(1) "C"
}
[3]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(6) "pubsf2"
["class"]=>
}
Private methods:array(4) {
[0]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(6) "privf1"
["class"]=>
string(1) "C"
}
[1]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(6) "privf2"
["class"]=>
string(1) "C"
}
[2]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(7) "privsf1"
["class"]=>
string(1) "C"
}
[3]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(7) "privsf2"
["class"]=>
}
Public or static methods:array(6) {
[0]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(5) "pubf1"
["class"]=>
string(1) "C"
}
[1]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(5) "pubf2"
["class"]=>
string(1) "C"
}
[2]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(6) "pubsf1"
["class"]=>
string(1) "C"
}
[3]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(6) "pubsf2"
["class"]=>
string(1) "C"
}
[4]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(7) "privsf1"
["class"]=>
string(1) "C"
}
[5]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(7) "privsf2"
["class"]=>
}
Private or static methods:array(6) {
[0]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(6) "privf1"
["class"]=>
string(1) "C"
}
[1]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(6) "privf2"
["class"]=>
string(1) "C"
}
[2]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(6) "pubsf1"
["class"]=>
string(1) "C"
}
[3]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(6) "pubsf2"
["class"]=>
string(1) "C"
}
[4]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(7) "privsf1"
["class"]=>
string(1) "C"
}
[5]=>
- &object(ReflectionMethod)#%d (2) {
+ object(ReflectionMethod)#%d (2) {
["name"]=>
string(7) "privsf2"
["class"]=>
Reflecting on class pubf:
array(2) {
[0]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "a"
[%u|b%"class"]=>
%unicode|string%(4) "pubf"
}
[1]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "s"
[%u|b%"class"]=>
Reflecting on class subpubf:
array(2) {
[0]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "a"
[%u|b%"class"]=>
%unicode|string%(4) "pubf"
}
[1]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "s"
[%u|b%"class"]=>
Reflecting on class protf:
array(2) {
[0]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "a"
[%u|b%"class"]=>
%unicode|string%(5) "protf"
}
[1]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "s"
[%u|b%"class"]=>
Reflecting on class subprotf:
array(2) {
[0]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "a"
[%u|b%"class"]=>
%unicode|string%(5) "protf"
}
[1]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "s"
[%u|b%"class"]=>
Reflecting on class privf:
array(2) {
[0]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "a"
[%u|b%"class"]=>
%unicode|string%(5) "privf"
}
[1]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
[%u|b%"name"]=>
%unicode|string%(1) "s"
[%u|b%"class"]=>
}
Public properties:array(4) {
[0]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(4) "pub1"
["class"]=>
string(1) "C"
}
[1]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(4) "pub2"
["class"]=>
string(1) "C"
}
[2]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(4) "pubs"
["class"]=>
string(1) "C"
}
[3]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(5) "pubs2"
["class"]=>
}
Private properties:array(4) {
[0]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(5) "priv1"
["class"]=>
string(1) "C"
}
[1]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(5) "priv2"
["class"]=>
string(1) "C"
}
[2]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(6) "privs1"
["class"]=>
string(1) "C"
}
[3]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(6) "privs2"
["class"]=>
}
Public or static properties:array(6) {
[0]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(4) "pub1"
["class"]=>
string(1) "C"
}
[1]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(4) "pub2"
["class"]=>
string(1) "C"
}
[2]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(4) "pubs"
["class"]=>
string(1) "C"
}
[3]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(5) "pubs2"
["class"]=>
string(1) "C"
}
[4]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(6) "privs1"
["class"]=>
string(1) "C"
}
[5]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(6) "privs2"
["class"]=>
}
Private or static properties:array(6) {
[0]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(5) "priv1"
["class"]=>
string(1) "C"
}
[1]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(5) "priv2"
["class"]=>
string(1) "C"
}
[2]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(4) "pubs"
["class"]=>
string(1) "C"
}
[3]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(5) "pubs2"
["class"]=>
string(1) "C"
}
[4]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(6) "privs1"
["class"]=>
string(1) "C"
}
[5]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(6) "privs2"
["class"]=>
--EXPECT--
array(12) {
["ReflectionException"]=>
- &object(ReflectionClass)#2 (1) {
+ object(ReflectionClass)#2 (1) {
["name"]=>
string(19) "ReflectionException"
}
["Reflection"]=>
- &object(ReflectionClass)#3 (1) {
+ object(ReflectionClass)#3 (1) {
["name"]=>
string(10) "Reflection"
}
["Reflector"]=>
- &object(ReflectionClass)#4 (1) {
+ object(ReflectionClass)#4 (1) {
["name"]=>
string(9) "Reflector"
}
["ReflectionFunctionAbstract"]=>
- &object(ReflectionClass)#5 (1) {
+ object(ReflectionClass)#5 (1) {
["name"]=>
string(26) "ReflectionFunctionAbstract"
}
["ReflectionFunction"]=>
- &object(ReflectionClass)#6 (1) {
+ object(ReflectionClass)#6 (1) {
["name"]=>
string(18) "ReflectionFunction"
}
["ReflectionParameter"]=>
- &object(ReflectionClass)#7 (1) {
+ object(ReflectionClass)#7 (1) {
["name"]=>
string(19) "ReflectionParameter"
}
["ReflectionMethod"]=>
- &object(ReflectionClass)#8 (1) {
+ object(ReflectionClass)#8 (1) {
["name"]=>
string(16) "ReflectionMethod"
}
["ReflectionClass"]=>
- &object(ReflectionClass)#9 (1) {
+ object(ReflectionClass)#9 (1) {
["name"]=>
string(15) "ReflectionClass"
}
["ReflectionObject"]=>
- &object(ReflectionClass)#10 (1) {
+ object(ReflectionClass)#10 (1) {
["name"]=>
string(16) "ReflectionObject"
}
["ReflectionProperty"]=>
- &object(ReflectionClass)#11 (1) {
+ object(ReflectionClass)#11 (1) {
["name"]=>
string(18) "ReflectionProperty"
}
["ReflectionExtension"]=>
- &object(ReflectionClass)#12 (1) {
+ object(ReflectionClass)#12 (1) {
["name"]=>
string(19) "ReflectionExtension"
}
["ReflectionZendExtension"]=>
- &object(ReflectionClass)#13 (1) {
+ object(ReflectionClass)#13 (1) {
["name"]=>
string(23) "ReflectionZendExtension"
}
=== 1st test ===
array(1) {
[0]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(5) "value"
["class"]=>
=== 2nd test ===
array(1) {
[0]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(5) "value"
["class"]=>
=== 3rd test ===
array(1) {
[0]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(5) "value"
["class"]=>
=== 4th test ===
array(1) {
[0]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(5) "value"
["class"]=>
bool(false)
array(2) {
[0]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(1) "b"
["class"]=>
string(4) "test"
}
[1]=>
- &object(ReflectionProperty)#%d (2) {
+ object(ReflectionProperty)#%d (2) {
["name"]=>
string(1) "a"
["class"]=>
}
array(1) {
["T1"]=>
- &object(ReflectionClass)#1 (1) {
+ object(ReflectionClass)#1 (1) {
["name"]=>
string(2) "T1"
}
}
array(2) {
["T1"]=>
- &object(ReflectionClass)#2 (1) {
+ object(ReflectionClass)#2 (1) {
["name"]=>
string(2) "T1"
}
["T2"]=>
- &object(ReflectionClass)#3 (1) {
+ object(ReflectionClass)#3 (1) {
["name"]=>
string(2) "T2"
}