1--TEST-- 2GHSA-5hqh-c84r-qjcv (Integer overflow in the dblib quoter causing OOB writes) 3--EXTENSIONS-- 4pdo_dblib 5--SKIPIF-- 6<?php 7if (PHP_INT_SIZE != 4) die("skip for 32bit platforms only"); 8if (PHP_OS_FAMILY === "Windows") die("skip not for Windows because the virtual address space for application is only 2GiB"); 9if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); 10require __DIR__ . '/config.inc'; 11getDbConnection(); 12?> 13--INI-- 14memory_limit=-1 15--FILE-- 16<?php 17 18require __DIR__ . '/config.inc'; 19$db = getDbConnection(); 20var_dump($db->quote(str_repeat("'", 2147483646))); 21 22?> 23--EXPECT-- 24bool(false) 25