summaryrefslogtreecommitdiff
path: root/ext/exif
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-12-16 17:14:54 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-12-16 17:14:54 +0000
commit6dc859da75004d94b62156755f2aa8aeb249f0bb (patch)
treefce80cf1c74554e6cbd0ab6861298c277729efc2 /ext/exif
parent25a7740600e3a19f7afa64a8e121e544c602fb78 (diff)
downloadphp-git-6dc859da75004d94b62156755f2aa8aeb249f0bb.tar.gz
MFB: Fixed bug #43606 (define missing depencies of the exif extension)
Diffstat (limited to 'ext/exif')
-rw-r--r--ext/exif/exif.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index cd6e3b5277..7c5e6089bc 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -241,12 +241,21 @@ PHP_MSHUTDOWN_FUNCTION(exif)
}
/* }}} */
+/* {{{ exif dependencies */
+static const zend_module_dep exif_module_deps[] = {
+ ZEND_MOD_REQUIRED("standard")
+ #if EXIF_USE_MBSTRING
+ ZEND_MOD_REQUIRED("mbstring")
+ #endif
+ {NULL, NULL, NULL}
+};
+/* }}} */
+
/* {{{ exif_module_entry
*/
zend_module_entry exif_module_entry = {
-#if ZEND_MODULE_API_NO >= 20010901
- STANDARD_MODULE_HEADER,
-#endif
+ STANDARD_MODULE_HEADER_EX, NULL,
+ exif_module_deps,
"exif",
exif_functions,
PHP_MINIT(exif),