1--TEST-- 2Bug GH-8267 (MySQLi uses unsupported format specifier on Windows) 3--EXTENSIONS-- 4mysqli 5--SKIPIF-- 6<?php 7require_once 'skipifconnectfailure.inc'; 8?> 9--FILE-- 10<?php 11require_once 'connect.inc'; 12 13$mysqli = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 14$mysqli->query("DROP TABLE IF EXISTS foo"); 15$mysqli->query("CREATE TABLE foo (id BIGINT UNSIGNED AUTO_INCREMENT, PRIMARY KEY (id))"); 16$mysqli->query("INSERT INTO foo VALUES (9223372036854775807)"); 17var_dump($mysqli->insert_id); 18$mysqli->query("INSERT INTO foo VALUES (0)"); 19var_dump($mysqli->insert_id); 20$mysqli->query("DROP TABLE IF EXISTS foo"); 21?> 22--EXPECT-- 23string(19) "9223372036854775807" 24string(19) "9223372036854775808" 25