php-src/Zend/tests/errmsg_014.phpt

18 lines
273 B
Plaintext
Raw Normal View History

2007-02-07 19:10:32 +08:00
--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