diff options
Diffstat (limited to 'ext/spl/php_spl.c')
-rwxr-xr-x | ext/spl/php_spl.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index b5d49d7311..900c0974e7 100755 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -581,10 +581,23 @@ PHP_RSHUTDOWN_FUNCTION(spl) /* {{{ */ return SUCCESS; } /* }}} */ +#ifdef HAVE_SIMPLEXML +static zend_module_dep spl_deps[] = { + ZEND_MOD_REQUIRED("libxml") + ZEND_MOD_REQUIRED("simplexml") + {NULL, NULL, NULL} +}; +#endif + /* {{{ spl_module_entry */ zend_module_entry spl_module_entry = { +#ifdef HAVE_SIMPLEXML + STANDARD_MODULE_HEADER_EX, NULL, + spl_deps, +#else STANDARD_MODULE_HEADER, +#endif "SPL", spl_functions, PHP_MINIT(spl), |