summaryrefslogtreecommitdiff
path: root/Zend/tests/bug32660.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug32660.phpt')
-rwxr-xr-xZend/tests/bug32660.phpt36
1 files changed, 0 insertions, 36 deletions
diff --git a/Zend/tests/bug32660.phpt b/Zend/tests/bug32660.phpt
deleted file mode 100755
index f173b287e1..0000000000
--- a/Zend/tests/bug32660.phpt
+++ /dev/null
@@ -1,36 +0,0 @@
---TEST--
-Bug #32660 Assignment by reference causes crash when field access is overloaded (__get)
---FILE--
-<?php
-class A
-{
- public $q;
-
- function __construct()
- {
- $this->q = 3;//array();
- }
-
- function __get($name)
- {
- return $this->q;
- }
-}
-
-$a = new A;
-
-$b = "short";
-$c =& $a->whatever;
-$c = "long";
-print_r($a);
-$a->whatever =& $b;
-$b = "much longer";
-print_r($a);
-?>
---EXPECTF--
-A Object
-(
- [q] => long
-)
-
-Fatal error: Cannot assign by reference to overloaded object in %sbug32660.php on line 23