summaryrefslogtreecommitdiff
path: root/Zend/tests/bug72943.phpt
blob: 8bab6de45648215ad00c7e12cc906deb0c46e2e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Bug #72943 (assign_dim on string doesn't reset hval)
--FILE--
<?php
$array = array("test" => 1);

$a = "lest";
var_dump($array[$a]);
$a[0] = "f";
var_dump($array[$a]);
$a[0] = "t";
var_dump($array[$a]);
?>
--EXPECTF--
Notice: Undefined index: lest in %sbug72943.php on line %d
NULL

Notice: Undefined index: fest in %sbug72943.php on line %d
NULL
int(1)