summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2007-03-20 20:00:27 +0000
committerMarcus Boerger <helly@php.net>2007-03-20 20:00:27 +0000
commit6081c2284e35b2678796ea7bdd6b63fce2fee22d (patch)
tree9edc03b644ec9fc153020fb8964283c26874608d
parente8bd8d03b31c85ef35015283db34ec2554289950 (diff)
downloadphp-git-6081c2284e35b2678796ea7bdd6b63fce2fee22d.tar.gz
- MFH Optional dependency for SPL must be specified in header
-rw-r--r--ext/mysqli/mysqli.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index 764e53b2cd..d9fe89c661 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -415,8 +415,21 @@ PHP_MYSQLI_EXPORT(zend_object_value) mysqli_objects_new(zend_class_entry *class_
/* {{{ mysqli_module_entry
*/
+/* Dependancies */
+static zend_module_dep mysqli_deps[] = {
+#if defined(HAVE_SPL) && ((PHP_MAJOR_VERSION > 5) || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 1))
+ ZEND_MOD_REQUIRED("spl")
+#endif
+ {NULL, NULL, NULL}
+};
+
zend_module_entry mysqli_module_entry = {
+#if ZEND_MODULE_API_NO >= 20050922
+ STANDARD_MODULE_HEADER_EX, NULL,
+ mysqli_deps,
+#elif ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
+#endif
"mysqli",
mysqli_functions,
PHP_MINIT(mysqli),