From 108a2fc64c968ba2cee92fb6bb1fe6a493958923 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 8 Dec 2006 15:55:31 +0000 Subject: Fixed bug #39775 ("Indirect modification ..." message is not shown) The fix breaks two SimpleXML tests those must be fixed --- tests/classes/array_access_003.phpt | 5 ++++- tests/classes/array_access_004.phpt | 5 ++++- tests/classes/array_access_005.phpt | 5 ++++- tests/classes/array_access_008.phpt | 8 +++++++- tests/classes/array_access_012.phpt | 2 +- 5 files changed, 20 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/classes/array_access_003.phpt b/tests/classes/array_access_003.phpt index 2d42665fc6..3e631125e7 100644 --- a/tests/classes/array_access_003.phpt +++ b/tests/classes/array_access_003.phpt @@ -53,4 +53,7 @@ object::offsetGet(2) int(1) object::offsetGet(2) -Fatal error: Objects used as arrays in post/pre increment/decrement must return values by reference in %sarray_access_003.php on line %d +Notice: Indirect modification of overloaded element of object has no effect in %sarray_access_003.php on line 39 +object::offsetGet(2) +int(1) +===DONE=== diff --git a/tests/classes/array_access_004.phpt b/tests/classes/array_access_004.phpt index 17f5b7c404..787496707c 100644 --- a/tests/classes/array_access_004.phpt +++ b/tests/classes/array_access_004.phpt @@ -51,4 +51,7 @@ object::offsetGet(2) int(1) object::offsetGet(2) -Fatal error: Objects used as arrays in post/pre increment/decrement must return values by reference in %sarray_access_004.php on line %d +Notice: Indirect modification of overloaded element of object has no effect in %sarray_access_004.php on line 39 +object::offsetGet(2) +int(1) +===DONE=== diff --git a/tests/classes/array_access_005.phpt b/tests/classes/array_access_005.phpt index 3832c536f3..dcb873ff56 100755 --- a/tests/classes/array_access_005.phpt +++ b/tests/classes/array_access_005.phpt @@ -70,5 +70,8 @@ array(1) { } Notice: Indirect modification of overloaded element of Peoples has no effect in %sarray_access_005.php on line 46 +string(6) "JoeFoo" -Fatal error: Objects used as arrays in post/pre increment/decrement must return values by reference in %sarray_access_005.php on line %d +Notice: Indirect modification of overloaded element of Peoples has no effect in %sarray_access_005.php on line 48 +string(6) "JoeFoo" +===DONE=== diff --git a/tests/classes/array_access_008.phpt b/tests/classes/array_access_008.phpt index 2b577c49e0..9979889174 100755 --- a/tests/classes/array_access_008.phpt +++ b/tests/classes/array_access_008.phpt @@ -57,5 +57,11 @@ string(9) "FooBarBaz" string(3) "Foo" Notice: Indirect modification of overloaded element of Peoples has no effect in %sarray_access_008.php on line 40 +string(3) "Foo" + +Notice: Indirect modification of overloaded element of Peoples has no effect in %sarray_access_008.php on line 42 +string(3) "Foo" -Fatal error: Objects used as arrays in post/pre increment/decrement must return values by reference in %sarray_access_008.php on line %d +Notice: Indirect modification of overloaded element of Peoples has no effect in %sarray_access_008.php on line 44 +string(3) "Foo" +===DONE=== diff --git a/tests/classes/array_access_012.phpt b/tests/classes/array_access_012.phpt index 937dc3589b..8f85f296eb 100755 --- a/tests/classes/array_access_012.phpt +++ b/tests/classes/array_access_012.phpt @@ -33,4 +33,4 @@ $data['element'] = &$test; Notice: Indirect modification of overloaded element of ArrayAccessImpl has no effect in %sarray_access_012.php on line 24 -Fatal error: Objects used as arrays in post/pre increment/decrement must return values by reference in %sarray_access_012.php on line %d +Fatal error: Cannot assign by reference to overloaded object in %sarray_access_012.php on line 24 -- cgit v1.2.1