Test: /tests/lang/passByReference_006.phpt - Version 5.4.42    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
021+ string(12) "Ref4 changed
021- string(12) "Ref4 changed"
022- }
023- }
024- object(stdClass)#%d (1) {
025- ["a"]=>
026- object(stdClass)#%d (1) {
027- ["b"]=>
028- object(stdClass)#%d (1) {
029- ["c"]=>
030- string(12) "Ref5 changed"
031- }
032- }
033- }
034-
035- ---- Pass uninitialised arrays & objects by ref: static method call ---
036-
037- Strict Standards: Non-static method C::refs() should not be called statically in %s on line 39
038- array(1) {
039- [0]=>
040- string(12) "Ref1 changed"
041- }
042- array(1) {
043- [0]=>
044- array(1) {
045- [1]=>
046- string(12) "Ref2 changed"
047- }
048- }
049- object(stdClass)#%d (1) {
050- ["a"]=>
051- string(12) "Ref3 changed"
052- }
053- object(stdClass)#%d (1) {
054- ["a"]=>
055- object(stdClass)#%d (1) {
056- ["b"]=>
057- string(12) "Ref4 changed"
058- }
059- }
060- object(stdClass)#%d (1) {
061- ["a"]=>
062- object(stdClass)#%d (1) {
063- ["b"]=>
064- object(stdClass)#%d (1) {
065- ["c"]=>
066- string(12) "Ref5 changed"
067- }
068- }
069- }
070-
071-
072- ---- Pass uninitialised arrays & objects by ref: constructor ---
073- array(1) {
074- [0]=>
075- string(12) "Ref1 changed"
076- }
077- array(1) {
078- [0]=>
079- array(1) {
080- [1]=>
081- string(12) "Ref2 changed"
082- }
083- }
084- object(stdClass)#%d (1) {
085- ["a"]=>
086- string(12) "Ref3 changed"
087- }
088- object(stdClass)#%d (1) {
089- ["a"]=>
090- object(stdClass)#%d (1) {
091- ["b"]=>
092- string(12) "Ref4 changed"
093- }
094- }
095- object(stdClass)#%d (1) {
096- ["a"]=>
097- object(stdClass)#%d (1) {
098- ["b"]=>
099- object(stdClass)#%d (1) {
100- ["c"]=>
101- string(12) "Ref5 changed"
102- }
103- }
104- }
105-
106- ---- Pass uninitialised arrays & objects by ref: instance method call ---
107- array(1) {
108- [0]=>
109- string(12) "Ref1 changed"
110- }
111- array(1) {
112- [0]=>
113- array(1) {
114- [1]=>
115- string(12) "Ref2 changed"
116- }
117- }
118- object(stdClass)#%d (1) {
119- ["a"]=>
120- string(12) "Ref3 changed"
121- }
122- object(stdClass)#%d (1) {
123- ["a"]=>
124- object(stdClass)#%d (1) {
125- ["b"]=>
126- string(12) "Ref4 changed"
127- }
128- }
129- object(stdClass)#%d (1) {
130- ["a"]=>
131- object(stdClass)#%d (1) {
132- ["b"]=>
133- object(stdClass)#%d (1) {
134- ["c"]=>
135- string(12) "Ref5 changed"
136- }
137- }
138- }