mirror of
https://github.com/php/php-src.git
synced 2026-10-28 17:56:50 +08:00
24 lines
512 B
PHP
24 lines
512 B
PHP
--TEST--
|
|
Test: Xinclude errors
|
|
--EXTENSIONS--
|
|
dom
|
|
--SKIPIF--
|
|
<?php
|
|
if (PHP_INT_SIZE != 8) die("skip for 64bit platforms only");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$dom = new DOMDocument;
|
|
$dom->xinclude(PHP_INT_MAX);
|
|
|
|
$dom = Dom\XMLDocument::createEmpty();
|
|
try {
|
|
$dom->xinclude(PHP_INT_MAX);
|
|
} catch (Throwable $e) {
|
|
echo $e::class, ': ', $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Warning: DOMDocument::xinclude(): Invalid flags in %s on line %d
|
|
ValueError: Dom\XMLDocument::xinclude(): Argument #1 ($options) is too large
|