summaryrefslogtreecommitdiff
path: root/ext/simplexml/tests/SimpleXMLElement_xpath_4.phpt
blob: 28e05176512b21296230b1035ad2b7f11607a8c7 (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
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)