Download src/php/php-src/ext/pdo_sqlite/tests/bug46542.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_sqlite/tests/bug46542.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_sqlite/tests/bug46542.phpt
-
curl -L -o bug46542.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_sqlite/tests/bug46542.phpt
336 Bytes
| --TEST-- | |
| Bug #46542 Extending PDO class with a __call() function | |
| --EXTENSIONS-- | |
| pdo_sqlite | |
| --FILE-- | |
| class A extends PDO | |
| { function __call($m, $p) {print __CLASS__."::$m\n";} } | |
| $a = new A('sqlite:' . __DIR__ . '/dummy.db'); | |
| $a->truc(); | |
| $a->TRUC(); | |
| --CLEAN-- | |
| unlink(__DIR__ . '/dummy.db'); | |
| --EXPECT-- | |
| A::truc | |
| A::TRUC | |