1--TEST--
2Foreach on stdClass with properties looking like mangled properties
3--FILE--
4<?php
5
6$obj = (object)[
7 "\0A\0b" => 42,
8 "\0*\0c" => 24,
9];
10
11foreach ($obj as $k => $v) {
12 var_dump($k, $v);
13}
14
15?>
16--EXPECT--
17string(1) "b"
18int(42)
19string(1) "c"
20int(24)
21