summaryrefslogtreecommitdiff
path: root/Zend/tests/bug37667.phpt
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-07-21 10:32:17 +0000
committerDmitry Stogov <dmitry@php.net>2006-07-21 10:32:17 +0000
commit33a1a4d39ae3c64675ec21957ed9b198b2eea1b9 (patch)
tree68fc4be760c94da097872173fe395bb5c2886357 /Zend/tests/bug37667.phpt
parent9a98904ddd0e08629afb9cc74299a28a5ff86cec (diff)
downloadphp-git-33a1a4d39ae3c64675ec21957ed9b198b2eea1b9.tar.gz
Changed error message (E_ERROR -> E_NOTICE) in case of indirect modification of overloaded property.
Diffstat (limited to 'Zend/tests/bug37667.phpt')
-rwxr-xr-xZend/tests/bug37667.phpt14
1 files changed, 12 insertions, 2 deletions
diff --git a/Zend/tests/bug37667.phpt b/Zend/tests/bug37667.phpt
index 429a9be3af..b05f296f01 100755
--- a/Zend/tests/bug37667.phpt
+++ b/Zend/tests/bug37667.phpt
@@ -30,7 +30,7 @@ var_dump($obj);
--EXPECTF--
string(3) "bar"
-Notice: Undefined offset: 2 in %sbug37667.php on line %d
+Notice: Undefined offset: 2 in %sbug37667.php on line 16
NULL
object(Test)#%d (1) {
["property:protected"]=>
@@ -40,4 +40,14 @@ object(Test)#%d (1) {
}
}
-Fatal error: Cannot use array returned from Test::__get('property') in write context in %sbug37667.php on line %d
+Notice: Indirect modification of overloaded property Test::$property has no effect in %sbug37667.php on line 20
+
+Notice: Indirect modification of overloaded property Test::$property has no effect in %sbug37667.php on line 21
+object(Test)#%d (1) {
+ ["property:protected"]=>
+ array(1) {
+ ["foo"]=>
+ string(3) "bar"
+ }
+}
+===DONE===