summaryrefslogtreecommitdiff
path: root/ext/simplexml/tests/SimpleXMLElement_xpath.phpt
blob: 334b6c81dbac6d788cfbd09901f0c193f25ecbe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Testing xpath() with invalid XML
--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 long, double given in %s on line %d

Catchable fatal error: Call to a member function xpath() on null in %s on line %d