Download src/php/php-src/ext/pdo_firebird/tests/bug_76488.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 600 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_firebird/tests/bug_76488.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_firebird/tests/bug_76488.phpt
-
curl -L -o bug_76488.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_firebird/tests/bug_76488.phpt
600 Bytes
| --TEST-- | |
| PDO_Firebird: Bug #76488 Memory leak when fetching a BLOB field | |
| --EXTENSIONS-- | |
| pdo_firebird | |
| --SKIPIF-- | |
| require('skipif.inc'); | |
| --FILE-- | |
| require 'testdb.inc'; | |
| $sql = ' | |
| with recursive r(n) as ( | |
| select 1 from rdb$database | |
| union all | |
| select n+1 from r where n < 1000 | |
| ) | |
| select n, | |
| cast(lpad(\'A\', 8000, \'A\') as BLOB sub_type TEXT) as SRC | |
| from r | |
| '; | |
| $dbh = getDbConnection(); | |
| for ($i = 0; $i < 10; $i++) { | |
| $sth = $dbh->prepare($sql); | |
| $sth->execute(); | |
| $rows = $sth->fetchAll(); | |
| unset($rows); | |
| unset($sth); | |
| } | |
| unset($dbh); | |
| echo "OK"; | |
| --EXPECT-- | |
| OK | |