dis-bench / src /php /php-src /ext /pdo /tests /bug_77849_2.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
332 Bytes
--TEST--
PDO Common: Bug #77849 (inconsistent state of cloned statament object)
--EXTENSIONS--
pdo
--FILE--
<?php
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