1--TEST-- 2Bug #73800 (sporadic segfault with MYSQLI_OPT_INT_AND_FLOAT_NATIVE) 3--EXTENSIONS-- 4mysqli 5--SKIPIF-- 6<?php 7require_once 'skipifconnectfailure.inc'; 8if (PHP_INT_SIZE != 8) die('skip requires 64-bit'); 9?> 10--FILE-- 11<?php 12 13require_once 'connect.inc'; 14$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 15 16$link->query('SET @@global.max_allowed_packet = 67108864'); 17$link->close(); 18 19$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 20$link->options(MYSQLI_OPT_INT_AND_FLOAT_NATIVE, 1); 21 22$res = $link->query("SELECT RPAD('1',9000000,'1') as a,RPAD('1',9000000,'1') as b, 9223372036854775807 as c"); 23$r = $res->fetch_array(); 24 25var_dump($r['c']); 26?> 27--EXPECT-- 28int(9223372036854775807) 29