Skip to content

Commit 02f3df1

Browse files
authored
Add missing ext/libxml dependency to ext/soap (php#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).
1 parent af4d676 commit 02f3df1

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

ext/soap/config.m4

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@ PHP_ARG_ENABLE([soap],
44
[Enable SOAP support])])
55

66
if test "$PHP_SOAP" != "no"; then
7-
8-
if test "$PHP_LIBXML" = "no"; then
9-
AC_MSG_ERROR([SOAP extension requires LIBXML extension, add --with-libxml])
10-
fi
11-
127
PHP_SETUP_LIBXML(SOAP_SHARED_LIBADD, [
138
AC_DEFINE(HAVE_SOAP,1,[ ])
149
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)
1510
PHP_SUBST(SOAP_SHARED_LIBADD)
1611
])
12+
PHP_ADD_EXTENSION_DEP(soap, libxml)
1713
fi

ext/soap/soap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ PHP_MINFO_FUNCTION(soap);
297297

298298
static const zend_module_dep soap_deps[] = {
299299
ZEND_MOD_REQUIRED("date")
300+
ZEND_MOD_REQUIRED("libxml")
300301
ZEND_MOD_END
301302
};
302303

0 commit comments

Comments
 (0)