xref: /PHP-7.4/Zend/tests/bug67985.phpt (revision 99f0760b)
1--TEST--
2Bug #67985 - Last used array index not copied to new array at assignment
3--FILE--
4<?php
5
6$a = ['zero', 'one', 'two'];
7unset($a[2]);
8$b = $a;
9$a[] = 'three';
10$b[] = 'three';
11
12var_dump($a === $b);
13
14?>
15--EXPECT--
16bool(true)
17