add NONET flag to disable network access when loading xml

This commit is contained in:
Rob Richards 2005-01-02 12:21:14 +00:00
parent 8450fae834
commit 6a64418809

View File

@ -470,6 +470,7 @@ PHP_MINIT_FUNCTION(libxml)
REGISTER_LONG_CONSTANT("LIBXML_XINCLUDE", XML_PARSE_XINCLUDE, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("LIBXML_NSCLEAN", XML_PARSE_NSCLEAN, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("LIBXML_NOCDATA", XML_PARSE_NOCDATA, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("LIBXML_NONET", XML_PARSE_NONET, CONST_CS | CONST_PERSISTENT);
#endif
return SUCCESS;