xref: /PHP-7.4/ext/pdo/tests/bug_77849_2.phpt (revision a2b8a62a)
1--TEST--
2PDO Common: Bug #77849 (inconsistent state of cloned statament object)
3--SKIPIF--
4<?php
5if (!extension_loaded('pdo')) die('skip');
6?>
7--FILE--
8<?php
9$stmt = new PDOStatement();
10
11clone $stmt;
12?>
13--EXPECTF--
14Fatal error: Uncaught Error: Trying to clone an uncloneable object of class PDOStatement in %s:4
15Stack trace:
16#0 {main}
17  thrown in %s on line 4
18
19