File size: 332 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--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