SimpleXMLElement_xpath_4.phpt 449 B

123456789101112131415161718192021
  1. --TEST--
  2. Testing xpath() with invalid XML
  3. --EXTENSIONS--
  4. simplexml
  5. --SKIPIF--
  6. <?php
  7. if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
  8. ?>
  9. --FILE--
  10. <?php
  11. try {
  12. simplexml_load_string("XXXXXXX^", $x, 0x6000000000000001);
  13. } catch (ValueError $exception) {
  14. echo $exception->getMessage() . "\n";
  15. }
  16. ?>
  17. --EXPECTF--
  18. Warning: Undefined variable $x in %s on line %d
  19. simplexml_load_string(): Argument #3 ($options) is too large