summaryrefslogtreecommitdiff
path: root/Zend/tests/bug67985.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug67985.phpt')
-rw-r--r--Zend/tests/bug67985.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/Zend/tests/bug67985.phpt b/Zend/tests/bug67985.phpt
new file mode 100644
index 0000000000..6f032643f4
--- /dev/null
+++ b/Zend/tests/bug67985.phpt
@@ -0,0 +1,16 @@
+--TEST--
+Bug #67985 - Last used array index not copied to new array at assignment
+--FILE--
+<?php
+
+$a = ['zero', 'one', 'two'];
+unset($a[2]);
+$b = $a;
+$a[] = 'three';
+$b[] = 'three';
+
+var_dump($a === $b);
+
+?>
+--EXPECT--
+bool(true)