summaryrefslogtreecommitdiff
path: root/Zend/tests/bug67985.phpt
blob: 6f032643f46cf478c2bdb70e5f664e1afdbe5ab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)