SimpleXMLElement_xpath_4.phpt 453 B

1234567891011121314151617
  1. --TEST--
  2. Testing xpath() with invalid XML
  3. --SKIPIF--
  4. <?php
  5. if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded');
  6. if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
  7. ?>
  8. --FILE--
  9. <?php
  10. $xml = simplexml_load_string("XXXXXXX^",$x,0x6000000000000001);
  11. var_dump($xml);
  12. ?>
  13. --EXPECTF--
  14. Notice: Undefined variable: x in %s on line %d
  15. Warning: simplexml_load_string(): Invalid options in %s on line %d
  16. bool(false)