1--TEST-- 2GH-8068 (mysqli_fetch_object creates inaccessible properties) 3--EXTENSIONS-- 4mysqli 5--SKIPIF-- 6<?php 7require_once 'skipifconnectfailure.inc'; 8?> 9--FILE-- 10<?php 11require_once "connect.inc"; 12mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT); 13$mysqli = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 14$res = $mysqli->query('SELECT 42'); 15$obj = $res->fetch_object(); 16var_dump( 17 $obj, 18 $obj->{42} 19); 20?> 21--EXPECT-- 22object(stdClass)#4 (1) { 23 ["42"]=> 24 string(2) "42" 25} 26string(2) "42" 27