Download src/php/php-src/ext/pdo_sqlite/tests/bug35336.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 544 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_sqlite/tests/bug35336.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_sqlite/tests/bug35336.phpt
-
curl -L -o bug35336.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_sqlite/tests/bug35336.phpt
544 Bytes
| --TEST-- | |
| Bug #35336 (crash on PDO::FETCH_CLASS + __set()) | |
| --EXTENSIONS-- | |
| pdo_sqlite | |
| --FILE-- | |
| class EEE { | |
| function __set ($field, $value) { | |
| echo "hello world\n"; | |
| } | |
| } | |
| $a = new PDO("sqlite::memory:");// pool ("sqlite::memory:"); | |
| $a->query ("CREATE TABLE test_35336 (a integer primary key, b text)"); | |
| $b = $a->prepare("insert into test_35336 (b) values (?)"); | |
| $b->execute(array (5)); | |
| $rez = $a->query ("SELECT * FROM test_35336")->fetchAll(PDO::FETCH_CLASS, 'EEE'); | |
| echo "Done\n"; | |
| --EXPECT-- | |
| hello world | |
| hello world | |
| Done | |