--TEST-- Test: Xinclude errors --EXTENSIONS-- dom --SKIPIF-- --FILE-- xinclude(PHP_INT_MAX); $dom = Dom\XMLDocument::createEmpty(); try { $dom->xinclude(PHP_INT_MAX); } catch (ValueError $e) { echo $e->getMessage(); } ?> --EXPECTF-- Warning: DOMDocument::xinclude(): Invalid flags in %s on line %d Dom\XMLDocument::xinclude(): Argument #1 ($options) is too large