php-src/Zend/tests/errmsg_014.phpt
2007-02-07 11:10:32 +00:00

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