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