Download src/php/php-src/ext/pdo_sqlite/tests/bug81740.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 411 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_sqlite/tests/bug81740.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_sqlite/tests/bug81740.phpt
-
curl -L -o bug81740.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_sqlite/tests/bug81740.phpt
411 Bytes
| --TEST-- | |
| Bug #81740 (PDO::quote() may return unquoted string) | |
| --EXTENSIONS-- | |
| pdo | |
| pdo_sqlite | |
| --SKIPIF-- | |
| 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-- | |
| $pdo = new PDO("sqlite::memory:"); | |
| $string = str_repeat("a", 0x80000000); | |
| var_dump($pdo->quote($string)); | |
| --EXPECT-- | |
| bool(false) | |