From 5a9e8a5e26d892c95e5bc0e56ec3241fd312a40f Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sun, 2 Mar 2014 15:47:08 +0800 Subject: [PATCH] Not reference anymore --- ext/reflection/tests/009.phpt | 6 +-- ext/reflection/tests/025.phpt | 6 +-- .../ReflectionClass_getInterfaces_003.phpt | 6 +-- .../tests/ReflectionClass_getMethods_001.phpt | 24 +++++------ .../tests/ReflectionClass_getMethods_003.phpt | 40 +++++++++---------- .../ReflectionClass_getProperties_001.phpt | 20 +++++----- .../ReflectionClass_getProperties_003.phpt | 40 +++++++++---------- .../ReflectionExtension_getClasses_basic.phpt | 24 +++++------ ext/reflection/tests/bug40431.phpt | 8 ++-- ext/reflection/tests/bug46064_2.phpt | 4 +- ext/reflection/tests/traits004.phpt | 6 +-- 11 files changed, 92 insertions(+), 92 deletions(-) diff --git a/ext/reflection/tests/009.phpt b/ext/reflection/tests/009.phpt index b54e89e5bf..8cc0f98166 100644 --- a/ext/reflection/tests/009.phpt +++ b/ext/reflection/tests/009.phpt @@ -93,17 +93,17 @@ bool(false) --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" } diff --git a/ext/reflection/tests/025.phpt b/ext/reflection/tests/025.phpt index 92002007b6..e49fa998e7 100644 --- a/ext/reflection/tests/025.phpt +++ b/ext/reflection/tests/025.phpt @@ -95,17 +95,17 @@ bool(false) --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" } diff --git a/ext/reflection/tests/ReflectionClass_getInterfaces_003.phpt b/ext/reflection/tests/ReflectionClass_getInterfaces_003.phpt index 74044f7531..bfe4835499 100644 --- a/ext/reflection/tests/ReflectionClass_getInterfaces_003.phpt +++ b/ext/reflection/tests/ReflectionClass_getInterfaces_003.phpt @@ -34,13 +34,13 @@ var_dump($a); 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) } @@ -52,7 +52,7 @@ The result is an array in which each element is an object (an instance of Reflec 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" } diff --git a/ext/reflection/tests/ReflectionClass_getMethods_001.phpt b/ext/reflection/tests/ReflectionClass_getMethods_001.phpt index ce5c980c60..1e11dee2f3 100644 --- a/ext/reflection/tests/ReflectionClass_getMethods_001.phpt +++ b/ext/reflection/tests/ReflectionClass_getMethods_001.phpt @@ -39,14 +39,14 @@ foreach($classes as $class) { 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"]=> @@ -56,14 +56,14 @@ array(2) { 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"]=> @@ -73,14 +73,14 @@ array(2) { 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"]=> @@ -90,14 +90,14 @@ array(2) { 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"]=> @@ -107,14 +107,14 @@ array(2) { 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"]=> @@ -124,14 +124,14 @@ array(2) { 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"]=> diff --git a/ext/reflection/tests/ReflectionClass_getMethods_003.phpt b/ext/reflection/tests/ReflectionClass_getMethods_003.phpt index 435f5d2d8d..885bd908f1 100644 --- a/ext/reflection/tests/ReflectionClass_getMethods_003.phpt +++ b/ext/reflection/tests/ReflectionClass_getMethods_003.phpt @@ -43,28 +43,28 @@ No methods:array(0) { } 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"]=> @@ -73,28 +73,28 @@ Public methods:array(4) { } 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"]=> @@ -103,42 +103,42 @@ Private methods:array(4) { } 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"]=> @@ -147,42 +147,42 @@ Public or static methods:array(6) { } 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"]=> diff --git a/ext/reflection/tests/ReflectionClass_getProperties_001.phpt b/ext/reflection/tests/ReflectionClass_getProperties_001.phpt index b4f99ca68f..cd4a29d450 100644 --- a/ext/reflection/tests/ReflectionClass_getProperties_001.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperties_001.phpt @@ -39,14 +39,14 @@ foreach($classes as $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"]=> @@ -56,14 +56,14 @@ array(2) { 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"]=> @@ -73,14 +73,14 @@ array(2) { 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"]=> @@ -90,14 +90,14 @@ array(2) { 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"]=> @@ -107,14 +107,14 @@ array(2) { 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"]=> diff --git a/ext/reflection/tests/ReflectionClass_getProperties_003.phpt b/ext/reflection/tests/ReflectionClass_getProperties_003.phpt index b4f9a774db..ac16a68349 100644 --- a/ext/reflection/tests/ReflectionClass_getProperties_003.phpt +++ b/ext/reflection/tests/ReflectionClass_getProperties_003.phpt @@ -41,28 +41,28 @@ No properties:array(0) { } 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"]=> @@ -71,28 +71,28 @@ Public properties:array(4) { } 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"]=> @@ -101,42 +101,42 @@ Private properties:array(4) { } 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"]=> @@ -145,42 +145,42 @@ Public or static properties:array(6) { } 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"]=> diff --git a/ext/reflection/tests/ReflectionExtension_getClasses_basic.phpt b/ext/reflection/tests/ReflectionExtension_getClasses_basic.phpt index 5df9e08c69..876109001c 100644 --- a/ext/reflection/tests/ReflectionExtension_getClasses_basic.phpt +++ b/ext/reflection/tests/ReflectionExtension_getClasses_basic.phpt @@ -11,62 +11,62 @@ var_dump($ext->getClasses()); --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" } diff --git a/ext/reflection/tests/bug40431.phpt b/ext/reflection/tests/bug40431.phpt index 863df7a78f..0c96e70faf 100644 --- a/ext/reflection/tests/bug40431.phpt +++ b/ext/reflection/tests/bug40431.phpt @@ -80,7 +80,7 @@ echo "Done\n"; === 1st test === array(1) { [0]=> - &object(ReflectionProperty)#%d (2) { + object(ReflectionProperty)#%d (2) { ["name"]=> string(5) "value" ["class"]=> @@ -94,7 +94,7 @@ bool(false) === 2nd test === array(1) { [0]=> - &object(ReflectionProperty)#%d (2) { + object(ReflectionProperty)#%d (2) { ["name"]=> string(5) "value" ["class"]=> @@ -108,7 +108,7 @@ bool(false) === 3rd test === array(1) { [0]=> - &object(ReflectionProperty)#%d (2) { + object(ReflectionProperty)#%d (2) { ["name"]=> string(5) "value" ["class"]=> @@ -122,7 +122,7 @@ bool(false) === 4th test === array(1) { [0]=> - &object(ReflectionProperty)#%d (2) { + object(ReflectionProperty)#%d (2) { ["name"]=> string(5) "value" ["class"]=> diff --git a/ext/reflection/tests/bug46064_2.phpt b/ext/reflection/tests/bug46064_2.phpt index da14148a7a..0b74708dff 100644 --- a/ext/reflection/tests/bug46064_2.phpt +++ b/ext/reflection/tests/bug46064_2.phpt @@ -57,14 +57,14 @@ bool(true) 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"]=> diff --git a/ext/reflection/tests/traits004.phpt b/ext/reflection/tests/traits004.phpt index c9367c1f48..ca0314d0df 100644 --- a/ext/reflection/tests/traits004.phpt +++ b/ext/reflection/tests/traits004.phpt @@ -30,7 +30,7 @@ array(1) { } array(1) { ["T1"]=> - &object(ReflectionClass)#1 (1) { + object(ReflectionClass)#1 (1) { ["name"]=> string(2) "T1" } @@ -45,12 +45,12 @@ array(2) { } 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" } -- 2.40.0