Download src/php/php-src/ext/pdo/tests/bug_77849_2.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo/tests/bug_77849_2.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo/tests/bug_77849_2.phpt
-
curl -L -o bug_77849_2.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo/tests/bug_77849_2.phpt
332 Bytes
| --TEST-- | |
| PDO Common: Bug #77849 (inconsistent state of cloned statament object) | |
| --EXTENSIONS-- | |
| pdo | |
| --FILE-- | |
| try { | |
| $stmt = new PDOStatement(); | |
| clone $stmt; | |
| } catch (Throwable $e) { | |
| echo $e::class, ": ", $e->getMessage(), PHP_EOL; | |
| } | |
| --EXPECT-- | |
| Error: Trying to clone an uncloneable object of class PDOStatement | |