mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Remove __clone test (not reason it should error)
This commit is contained in:
parent
94d5d7d01b
commit
c60cd3e8ef
@ -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
|
Loading…
Reference in New Issue
Block a user