1--TEST--
2Testing xpath() with invalid XML
3--SKIPIF--
4<?php
5if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platforms only");
6?>
7--FILE--
8<?php
9$xml = simplexml_load_string("XXXXXXX^",$x,0x6000000000000001);
10var_dump($xml->xpath("BBBB"));
11?>
12--EXPECTF--
13Notice: Undefined variable: x in %s on line %d
14
15Warning: simplexml_load_string() expects parameter 3 to be int, float given in %s on line %d
16
17Fatal error: Uncaught Error: Call to a member function xpath() on null in %s:%d
18Stack trace:
19#0 {main}
20  thrown in %s on line %d
21