summaryrefslogtreecommitdiff
path: root/Zend/tests/bug33282.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug33282.phpt')
-rw-r--r--Zend/tests/bug33282.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/Zend/tests/bug33282.phpt b/Zend/tests/bug33282.phpt
new file mode 100644
index 000000000..65e3c16cf
--- /dev/null
+++ b/Zend/tests/bug33282.phpt
@@ -0,0 +1,19 @@
+--TEST--
+Bug #33282 (Re-assignment by reference does not clear the is_ref flag)
+--FILE--
+<?php
+ $a = array(1, 2, 3);
+ $r = &$a[0];
+ $r = &$a[1];
+ $r = &$a[2];
+ var_dump($a);
+?>
+--EXPECT--
+array(3) {
+ [0]=>
+ int(1)
+ [1]=>
+ int(2)
+ [2]=>
+ &int(3)
+}