Download src/php/php-src/ext/pdo_sqlite/tests/bug52487.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 369 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_sqlite/tests/bug52487.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_sqlite/tests/bug52487.phpt
-
curl -L -o bug52487.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_sqlite/tests/bug52487.phpt
369 Bytes
| --TEST-- | |
| Bug #52487 (PDO::FETCH_INTO leaks memory) | |
| --EXTENSIONS-- | |
| pdo_sqlite | |
| --FILE-- | |
| require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc'; | |
| $db = PDOTest::test_factory(__DIR__ . '/common.phpt'); | |
| $stmt = $db->prepare("select 1 as attr"); | |
| for ($i = 0; $i < 10; $i++) { | |
| $stmt->setFetchMode(PDO::FETCH_INTO, new stdClass); | |
| } | |
| print "ok\n"; | |
| --EXPECT-- | |
| ok | |