bug78563.phpt 304 B

1234567891011121314151617
  1. --TEST--
  2. Bug #78563: parsers should not be clonable
  3. --EXTENSIONS--
  4. xml
  5. --FILE--
  6. <?php
  7. $parser = xml_parser_create();
  8. clone $parser;
  9. ?>
  10. ===DONE===
  11. --EXPECTF--
  12. Fatal error: Uncaught Error: Trying to clone an uncloneable object of class XMLParser in %s:%d
  13. Stack trace:
  14. #0 {main}
  15. thrown in %s on line %d