1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/simplexml/tests/SimpleXMLElement_xpath.phpt
2014-12-21 13:23:02 +00:00

15 lines
457 B
PHP

--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
Catchable fatal error: Call to a member function xpath() on null in %s on line %d