1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt
2015-05-31 21:35:21 +02:00

23 lines
622 B
PHP

--TEST--
Testing xpath() with invalid XML
--SKIPIF--
<?php
if (PHP_MAJOR_VERSION < 7) die("skip this test is for PHP 7+ only");
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms 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(): Entity: line 1: parser error : Start tag expected, '<' not found in %s on line %d
Warning: simplexml_load_string(): XXXXXXX^ in %s on line %d
Warning: simplexml_load_string(): ^ in %s on line %d
bool(false)