--TEST-- Bug #36802 (crashes with with mysqli_set_charset()) --SKIPIF-- --FILE-- set_charset('utf8'); } else { $x[0] = NULL; } $x[1] = @$mysql->query("SELECT 'foo' FROM DUAL"); /* following operations should work */ $x[2] = ($mysql->client_version > 0); $x[3] = $mysql->errno; $mysql->close(); var_dump($x); ?> --EXPECT-- array(4) { [0]=> NULL [1]=> NULL [2]=> bool(true) [3]=> int(0) }