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