1--TEST--
2Testing xpath() with invalid XML
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
12try {
13    simplexml_load_string("XXXXXXX^", $x, 0x6000000000000001);
14} catch (ValueError $exception) {
15    echo $exception->getMessage() . "\n";
16}
17
18?>
19--EXPECTF--
20Warning: Undefined variable $x in %s on line %d
21simplexml_load_string(): Argument #3 ($options) is too large
22