bug74950.phpt 561 B

123456789101112131415161718
  1. --TEST--
  2. Bug #74950 (null pointer deref in zim_simplexml_element_getDocNamespaces)
  3. --EXTENSIONS--
  4. simplexml
  5. --SKIPIF--
  6. <?php
  7. if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
  8. ?>
  9. --FILE--
  10. <?php
  11. $xml=new SimpleXMLElement(0,9000000000);var_dump($xml->getDocNamespaces())?>
  12. ?>
  13. --EXPECTF--
  14. Fatal error: Uncaught Exception: SimpleXMLElement::__construct(): Argument #2 ($options) is invalid in %sbug74950.php:%d
  15. Stack trace:
  16. #0 %sbug74950.php(%d): SimpleXMLElement->__construct('0', 9000000000)
  17. #1 {main}
  18. thrown in %sbug74950.php on line %d