--TEST-- mysqli_float_handling - ensure 4 byte float is handled correctly --EXTENSIONS-- mysqli --SKIPIF-- server_version < 50709) { die("skip MySQL 5.7.9+ needed. Found [". intval(substr($link->server_version."", -5, 1)). ".". intval(substr($link->server_version."", -4, 2)). ".". intval(substr($link->server_version."", -2, 2)). "]"); } } ?> --FILE-- fetch_all(); if (json_encode($rows[0][0]) != json_encode($jsfield_data)) { printf("[006] Data differs"); var_dump(json_encode($rows[0][0]) != json_encode($jsfield_data)); die(); } mysqli_close($link); echo "OK"; ?> --CLEAN-- --EXPECT-- OK