summaryrefslogtreecommitdiff
path: root/Zend/tests/bug39775.phpt
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-12-08 15:55:31 +0000
committerDmitry Stogov <dmitry@php.net>2006-12-08 15:55:31 +0000
commit108a2fc64c968ba2cee92fb6bb1fe6a493958923 (patch)
treeaebedd88931c7eb80134323cc335fd94f3a77641 /Zend/tests/bug39775.phpt
parent1edf208421da4efefa16f09b31cafb7d18597759 (diff)
downloadphp-git-108a2fc64c968ba2cee92fb6bb1fe6a493958923.tar.gz
Fixed bug #39775 ("Indirect modification ..." message is not shown)
The fix breaks two SimpleXML tests those must be fixed
Diffstat (limited to 'Zend/tests/bug39775.phpt')
-rwxr-xr-xZend/tests/bug39775.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/Zend/tests/bug39775.phpt b/Zend/tests/bug39775.phpt
new file mode 100755
index 0000000000..4c6ce6baf1
--- /dev/null
+++ b/Zend/tests/bug39775.phpt
@@ -0,0 +1,20 @@
+--TEST--
+Bug #39775 ("Indirect modification ..." message is not shown)
+--FILE--
+<?php
+class test {
+ var $array = array();
+ function __get($var) {
+ $v =& $this->array;
+ return $this->array;
+ }
+}
+$t = new test;
+$t->anything[] = 'bar';
+print_r($t->anything);
+?>
+--EXPECTF--
+Notice: Indirect modification of overloaded property test::$anything has no effect in %sbug39775.php on line 10
+Array
+(
+)