1--TEST-- 2Testing xpath() with invalid XML 3--SKIPIF-- 4<?php 5if (PHP_MAJOR_VERSION < 7) die("skip this test is for PHP 7+ only"); 6if (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); 11var_dump($xml); 12?> 13--EXPECTF-- 14Notice: Undefined variable: x in %s on line %d 15 16Warning: simplexml_load_string(): Invalid options in %s on line %d 17bool(false) 18