1--TEST--
2Testing xpath() with invalid XML
3--SKIPIF--
4<?php
5if (PHP_MAJOR_VERSION != 5) die("skip this test is for PHP 5 only");
6if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platforms only");
7?>
8--FILE--
9<?php
10$xml = simplexml_load_string("XXXXXXX^",$x,0x6000000000000001);
11var_dump($xml->xpath("BBBB"));
12?>
13--EXPECTF--
14Notice: Undefined variable: x in %s on line %d
15
16Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in %s on line %d
17
18Warning: simplexml_load_string(): XXXXXXX^ in %s on line %d
19
20Warning: simplexml_load_string(): ^ in %s on line %d
21
22Fatal error: Call to a member function xpath() on boolean in %s on line %d
23