xref: /PHP-8.1/Zend/tests/gh10570.phpt (revision b9a5bfc3)
1--TEST--
2GH-10570 (Assertion `(key)->h != 0 && "Hash must be known"' failed.): constant variation
3--FILE--
4<?php
5$a = new stdClass();
6for ($i = 0; $i < 2; $i++) {
7    $a->{90};
8    $a->{0} = 0;
9}
10?>
11--EXPECTF--
12Warning: Undefined property: stdClass::$90 in %s on line %d
13
14Warning: Undefined property: stdClass::$90 in %s on line %d
15