Download src/php/php-src/ext/pdo/tests/bug_77849.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 642 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo/tests/bug_77849.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo/tests/bug_77849.phpt
-
curl -L -o bug_77849.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo/tests/bug_77849.phpt
642 Bytes
| --TEST-- | |
| PDO Common: Bug #77849 (Unexpected segfault attempting to use cloned PDO object) | |
| --EXTENSIONS-- | |
| pdo | |
| --SKIPIF-- | |
| $dir = getenv('REDIR_TEST_DIR'); | |
| if (false == $dir) die('skip no driver'); | |
| require_once $dir . 'pdo_test.inc'; | |
| PDOTest::skip(); | |
| --FILE-- | |
| if (getenv('REDIR_TEST_DIR') === false) putenv('REDIR_TEST_DIR='.dirname(__FILE__) . '/../../pdo/tests/'); | |
| require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc'; | |
| $db = PDOTest::factory(); | |
| try { | |
| $db2 = clone $db; | |
| } catch (Throwable $e) { | |
| echo $e::class, ": ", $e->getMessage(), PHP_EOL; | |
| } | |
| --EXPECT-- | |
| Error: Trying to clone an uncloneable object of class PDO | |