--TEST-- GH-8068 (mysqli_fetch_object creates inaccessible properties) --EXTENSIONS-- mysqli --SKIPIF-- --FILE-- query('SELECT 42'); $obj = $res->fetch_object(); var_dump( $obj, $obj->{42} ); ?> --EXPECT-- object(stdClass)#4 (1) { ["42"]=> string(2) "42" } string(2) "42"