mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
Fixes simplexml test
This commit is contained in:
parent
62f6c3c0c4
commit
df1b722b67
@ -2,7 +2,11 @@
|
||||
Testing xpath() with invalid XML
|
||||
--FILE--
|
||||
<?php
|
||||
$xml = @simplexml_load_string("XXXXXXX^",$x,0x6000000000000001);
|
||||
$xml = simplexml_load_string("XXXXXXX^",$x,0x6000000000000001);
|
||||
var_dump($xml->xpath("BBBB"));
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
--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
|
Loading…
Reference in New Issue
Block a user