1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 23:48:14 +02:00

Remove __clone test (not reason it should error)

This commit is contained in:
Nikita Popov
2014-07-21 18:47:03 +02:00
parent 94d5d7d01b
commit c60cd3e8ef
-17
View File
@@ -1,17 +0,0 @@
--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