summaryrefslogtreecommitdiff
path: root/Zend/tests/bug34137.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug34137.phpt')
-rwxr-xr-xZend/tests/bug34137.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/bug34137.phpt b/Zend/tests/bug34137.phpt
new file mode 100755
index 000000000..4e0a09ffa
--- /dev/null
+++ b/Zend/tests/bug34137.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Bug #34137 (assigning array element by reference causes binary mess)
+--FILE--
+<?php
+$arr1 = array('a1' => array('alfa' => 'ok'));
+$arr1 =& $arr1['a1'];
+echo '-'.$arr1['alfa']."-\n";
+?>
+--EXPECT--
+-ok-