We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d035b5 commit 969dcf7Copy full SHA for 969dcf7
ext/dom/document.c
@@ -1728,9 +1728,14 @@ PHP_FUNCTION(dom_document_xinclude)
1728
return;
1729
}
1730
1731
+ if (ZEND_LONG_EXCEEDS_INT(flags)) {
1732
+ php_error_docref(NULL, E_WARNING, "Invalid flags");
1733
+ RETURN_FALSE;
1734
+ }
1735
+
1736
DOM_GET_OBJ(docp, id, xmlDocPtr, intern);
1737
- err = xmlXIncludeProcessFlags(docp, flags);
1738
+ err = xmlXIncludeProcessFlags(docp, (int)flags);
1739
1740
/* XML_XINCLUDE_START and XML_XINCLUDE_END nodes need to be removed as these
1741
are added via xmlXIncludeProcess to mark beginning and ending of xincluded document
0 commit comments