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