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