mirror of
https://github.com/php/php-src.git
synced 2024-10-16 22:12:33 +00:00
613947afc6
objects. Technically it might be possible to tweak ext/mysqli and make the objects cloneable - tough, we haven't checked in depth. So, if one is interested, raise a discussion.
13 lines
332 B
PHP
13 lines
332 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: Trying to clone an uncloneable object of class mysqli_driver in %s on line %d
|