summaryrefslogtreecommitdiff
path: root/ext/spl/php_spl.c
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-06-17 16:42:54 +0000
committerfoobar <sniper@php.net>2005-06-17 16:42:54 +0000
commit19639aa9aba38d0db9f3ed40daf4fa9bc5a140d6 (patch)
tree6b04456ec0c0789ea889ae3456eefdb5002460b6 /ext/spl/php_spl.c
parenta491b82c4c4a6ac9e4fb09e030f078b155de88a5 (diff)
downloadphp-git-19639aa9aba38d0db9f3ed40daf4fa9bc5a140d6.tar.gz
Use the new dependency system
Diffstat (limited to 'ext/spl/php_spl.c')
-rwxr-xr-xext/spl/php_spl.c13
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),