Download src/php/php-src/ext/pdo_dblib/tests/bug_50755.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 635 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_dblib/tests/bug_50755.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_dblib/tests/bug_50755.phpt
-
curl -L -o bug_50755.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_dblib/tests/bug_50755.phpt
635 Bytes
| --TEST-- | |
| PDO_DBLIB: Out of memory on large recordsets | |
| --EXTENSIONS-- | |
| pdo_dblib | |
| --SKIPIF-- | |
| if (getenv('SKIP_REPEAT')) die('skip May fail on repeat'); | |
| require __DIR__ . '/config.inc'; | |
| getDbConnection(); | |
| --CONFLICTS-- | |
| all | |
| --FILE-- | |
| require __DIR__ . '/config.inc'; | |
| $db = getDbConnection(); | |
| /* This should be sufficient to overflow any buffers */ | |
| $stmt = $db->prepare("select * | |
| from information_schema.columns ic1 | |
| cross join information_schema.columns ic2 | |
| cross join information_schema.columns ic3"); | |
| $x = $stmt->execute(); | |
| $n = 0; | |
| while (($r = $stmt->fetch())) { | |
| $n++; | |
| } | |
| $stmt = null; | |
| echo "OK\n"; | |
| --EXPECT-- | |
| OK | |