xref: /PHP-8.1/ext/pdo_sqlite/tests/bug81740.phpt (revision da5cbca2)
1--TEST--
2Bug #81740 (PDO::quote() may return unquoted string)
3--EXTENSIONS--
4pdo
5pdo_sqlite
6--SKIPIF--
7<?php
8if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
9if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
10?>
11--INI--
12memory_limit=-1
13--FILE--
14<?php
15$pdo = new PDO("sqlite::memory:");
16$string = str_repeat("a", 0x80000000);
17var_dump($pdo->quote($string));
18?>
19--EXPECT--
20bool(false)
21