bug71536.phpt 424 B

12345678910111213141516171819202122
  1. --TEST--
  2. Bug #71536 (Access Violation crashes php-cgi.exe)
  3. --EXTENSIONS--
  4. xmlwriter
  5. --FILE--
  6. <?php
  7. class Test {
  8. public static function init()
  9. {
  10. $xml = new \XMLWriter();
  11. $xml->openUri('php://memory');
  12. $xml->setIndent(false);
  13. $xml->startDocument('1.0', 'UTF-8');
  14. $xml->startElement('response');
  15. die('now'); // crashed with die()
  16. }
  17. }
  18. Test::init();
  19. ?>
  20. --EXPECT--
  21. now