1--TEST--
2Trying to clone mysqli_driver object
3--EXTENSIONS--
4mysqli
5--FILE--
6<?php
7    $driver = new mysqli_driver;
8    $driver_clone = clone $driver;
9    print "done!";
10?>
11--EXPECTF--
12Fatal error: Uncaught Error: Trying to clone an uncloneable object of class mysqli_driver in %s:%d
13Stack trace:
14#0 {main}
15  thrown in %s on line %d
16