errmsg_014.phpt 273 B

1234567891011121314151617
  1. --TEST--
  2. errmsg: cannot call __clone() method on objects
  3. --FILE--
  4. <?php
  5. class test {
  6. function __clone() {
  7. }
  8. }
  9. $t = new test;
  10. $t->__clone();
  11. echo "Done\n";
  12. ?>
  13. --EXPECTF--
  14. Fatal error: Cannot call __clone() method on objects - use 'clone $obj' instead in %s on line %d