xref: /php-src/Zend/tests/bug72943.phpt (revision c48b745f)
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--
15Warning: Undefined array key "lest" in %s on line %d
16NULL
17
18Warning: Undefined array key "fest" in %s on line %d
19NULL
20int(1)
21