xref: /php-src/ext/simplexml/tests/bug74950.phpt (revision 7f2f0c00)
1--TEST--
2Bug #74950 (null pointer deref in zim_simplexml_element_getDocNamespaces)
3--EXTENSIONS--
4simplexml
5--SKIPIF--
6<?php
7if (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--
14Fatal error: Uncaught Exception: SimpleXMLElement::__construct(): Argument #2 ($options) is invalid in %sbug74950.php:%d
15Stack trace:
16#0 %sbug74950.php(%d): SimpleXMLElement->__construct('0', 9000000000)
17#1 {main}
18  thrown in %sbug74950.php on line %d
19