Add missing ext/libxml dependency to ext/soap (#14285)

This adds the libxml extension to required dependencies for ext/soap
during the configuration phase (PHP_ADD_EXTENSION_DEP) and the runtime
(ZEND_MOD_REQUIRED).
This commit is contained in:
Peter Kokot 2024-05-21 21:55:02 +02:00 committed by GitHub
parent af4d6765b8
commit 02f3df177d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -4,14 +4,10 @@ PHP_ARG_ENABLE([soap],
[Enable SOAP support])])
if test "$PHP_SOAP" != "no"; then
if test "$PHP_LIBXML" = "no"; then
AC_MSG_ERROR([SOAP extension requires LIBXML extension, add --with-libxml])
fi
PHP_SETUP_LIBXML(SOAP_SHARED_LIBADD, [
AC_DEFINE(HAVE_SOAP,1,[ ])
PHP_NEW_EXTENSION(soap, soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
PHP_SUBST(SOAP_SHARED_LIBADD)
])
PHP_ADD_EXTENSION_DEP(soap, libxml)
fi

View File

@ -297,6 +297,7 @@ PHP_MINFO_FUNCTION(soap);
static const zend_module_dep soap_deps[] = {
ZEND_MOD_REQUIRED("date")
ZEND_MOD_REQUIRED("libxml")
ZEND_MOD_END
};