mirror of
https://github.com/php/php-src.git
synced 2024-12-24 01:09:58 +08:00
18 lines
273 B
PHP
18 lines
273 B
PHP
--TEST--
|
|
errmsg: cannot call __clone() method on objects
|
|
--FILE--
|
|
<?php
|
|
|
|
class test {
|
|
function __clone() {
|
|
}
|
|
}
|
|
|
|
$t = new test;
|
|
$t->__clone();
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot call __clone() method on objects - use 'clone $obj' instead in %s on line %d
|