1--TEST-- 2Bug #73333 (2147483647 is fetched as string) 3--EXTENSIONS-- 4sqlite3 5--FILE-- 6<?php 7if (!defined('PHP_INT_MIN')) define('PHP_INT_MIN', -PHP_INT_MAX-1); 8 9$db = new SQLite3(':memory:'); 10$db->exec('CREATE TABLE foo (bar INT)'); 11foreach ([PHP_INT_MIN, PHP_INT_MAX] as $value) { 12 $db->exec("INSERT INTO foo VALUES ($value)"); 13} 14 15$res = $db->query('SELECT bar FROM foo'); 16while (($row = $res->fetchArray(SQLITE3_NUM)) !== false) { 17 echo gettype($row[0]), PHP_EOL; 18} 19?> 20--EXPECT-- 21integer 22integer 23