php-src/ext/mysqli/tests/mysqli_driver_unclonable.phpt

16 lines
389 B
PHP

--TEST--
Trying to clone mysqli_driver object
--SKIPIF--
<?php require_once('skipif.inc'); ?>
<?php require_once('skipifemb.inc'); ?>
--FILE--
<?php
$driver = new mysqli_driver;
$driver_clone = clone $driver;
print "done!";
?>
--EXPECTF--
Fatal error: Uncaught Error: Trying to clone an uncloneable object of class mysqli_driver in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d