1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00
Files
archived-php-src/ext/pdo_sqlite/tests/bug81740.phpt
2022-12-19 16:14:00 +01:00

21 lines
411 B
PHP

--TEST--
Bug #81740 (PDO::quote() may return unquoted string)
--EXTENSIONS--
pdo
pdo_sqlite
--SKIPIF--
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
?>
--INI--
memory_limit=-1
--FILE--
<?php
$pdo = new PDO("sqlite::memory:");
$string = str_repeat("a", 0x80000000);
var_dump($pdo->quote($string));
?>
--EXPECT--
bool(false)