Skip to content

Commit 479a488

Browse files
nielsdosChangochen
andcommitted
Add regression test for GH-10570
Co-authored-by: Changochen <changochen1@gmail.com>
1 parent fd2f588 commit 479a488

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Zend/tests/gh10570.phpt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--TEST--
2+
GH-10570 (Assertion `(key)->h != 0 && "Hash must be known"' failed.): constant variation
3+
--FILE--
4+
<?php
5+
$a = new stdClass();
6+
for ($i = 0; $i < 2; $i++) {
7+
$a->{90};
8+
$a->{0} = 0;
9+
}
10+
?>
11+
--EXPECTF--
12+
Warning: Undefined property: stdClass::$90 in %s on line %d
13+
14+
Warning: Undefined property: stdClass::$90 in %s on line %d

0 commit comments

Comments
 (0)