mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
99f0760bfb
In master zend_array_dup() is used to do this properly; this is a workaround.
17 lines
230 B
PHP
17 lines
230 B
PHP
--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)
|