Declare XML_SAX_IMPL constant in stubs (#9732)

This commit is contained in:
Máté Kocsis 2022-10-12 11:42:24 +02:00 committed by GitHub
parent fd3d3117b5
commit fc11a8abcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 7 deletions

View file

@ -264,12 +264,6 @@ PHP_MINIT_FUNCTION(xml)
php_xml_mem_hdlrs.realloc_fcn = php_xml_realloc_wrapper;
php_xml_mem_hdlrs.free_fcn = php_xml_free_wrapper;
#ifdef LIBXML_EXPAT_COMPAT
REGISTER_STRING_CONSTANT("XML_SAX_IMPL", "libxml", CONST_CS|CONST_PERSISTENT);
#else
REGISTER_STRING_CONSTANT("XML_SAX_IMPL", "expat", CONST_CS|CONST_PERSISTENT);
#endif
return SUCCESS;
}