Download src/php/php-src/ext/pdo_sqlite/tests/gh14712.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 393 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_sqlite/tests/gh14712.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_sqlite/tests/gh14712.phpt
-
curl -L -o gh14712.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_sqlite/tests/gh14712.phpt
393 Bytes
| --TEST-- | |
| GH-14712: segfault on PDORow | |
| --EXTENSIONS-- | |
| pdo_sqlite | |
| --CREDITS-- | |
| YuanchengJiang | |
| --FILE-- | |
| $db = new PDO('sqlite::memory:'); | |
| try { | |
| $db->query("select 1 as queryStringxx")->fetch(PDO::FETCH_LAZY)->documentElement->firstChild->nextElementSibling->textContent = "é"; | |
| } catch (Error $e) { | |
| echo $e->getMessage(); | |
| } | |
| --EXPECT-- | |
| Attempt to modify property "firstChild" on null | |