xref: /PHP-7.2/Zend/tests/bug72943.phpt (revision c67fa3c9)
1--TEST--
2Bug #72943 (assign_dim on string doesn't reset hval)
3--FILE--
4<?php
5$array = array("test" => 1);
6
7$a = "lest";
8var_dump($array[$a]);
9$a[0] = "f";
10var_dump($array[$a]);
11$a[0] = "t";
12var_dump($array[$a]);
13?>
14--EXPECTF--
15Notice: Undefined index: lest in %sbug72943.php on line %d
16NULL
17
18Notice: Undefined index: fest in %sbug72943.php on line %d
19NULL
20int(1)
21