1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 09:42:22 +01:00
Files
archived-php-src/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt
2018-07-27 00:48:30 -03:00

18 lines
453 B
PHP

--TEST--
Testing xpath() with invalid XML
--SKIPIF--
<?php
if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded');
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);
?>
--EXPECTF--
Notice: Undefined variable: x in %s on line %d
Warning: simplexml_load_string(): Invalid options in %s on line %d
bool(false)