]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #43606 (define missing depencies of the exif extension)
authorIlia Alshanetsky <iliaa@php.net>
Sun, 16 Dec 2007 17:15:05 +0000 (17:15 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 16 Dec 2007 17:15:05 +0000 (17:15 +0000)
ext/exif/exif.c

index 1a9b3fdca698086aa138c5634bae7f1b8704c633..b28b389eff1018a42a28ca4c53d01466c650ef8d 100644 (file)
@@ -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),