Download src/php/php-src/ext/pdo_firebird/tests/bug_76452.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 734 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_firebird/tests/bug_76452.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_firebird/tests/bug_76452.phpt
-
curl -L -o bug_76452.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_firebird/tests/bug_76452.phpt
734 Bytes
| --TEST-- | |
| Bug ##76452 (Crash while parsing blob data in firebird_fetch_blob) | |
| --EXTENSIONS-- | |
| pdo_firebird | |
| --SKIPIF-- | |
| require('skipif.inc'); | |
| --FILE-- | |
| require_once "payload_server.inc"; | |
| $address = run_server(__DIR__ . "/bug_76452.data"); | |
| // no need to change the credentials; we're running against a falke server | |
| $dsn = "firebird:dbname=inet://$address/test76452"; | |
| $username = 'SYSDBA'; | |
| $password = 'masterkey'; | |
| $dbh = new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]); | |
| $query = $dbh->prepare("SELECT * FROM test76452"); | |
| $query->execute(); | |
| var_dump($query->fetch()); | |
| --EXPECT-- | |
| array(4) { | |
| ["AAA"]=> | |
| string(4) "hihi" | |
| [0]=> | |
| string(4) "hihi" | |
| ["BBBB"]=> | |
| NULL | |
| [1]=> | |
| NULL | |
| } | |