]> 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:14:54 +0000 (17:14 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 16 Dec 2007 17:14:54 +0000 (17:14 +0000)
NEWS
ext/exif/exif.c

diff --git a/NEWS b/NEWS
index 9779af9071224e32954ea7166e310783ad951b44..75f52201e07b4c34757669ae4290cb3fb14c9a84 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ PHP                                                                        NEWS
 ?? ??? 2008, PHP 5.2.6
 - Fixed weired behavior in CGI parameter parsing. (Dmitry, Hannes Magnusson)
 
+- Fixed bug #43606 (define missing depencies of the exif extension)
+  (crrodriguez at suse dot de)
 - Fixed bug #43580 (removed bogus declaration of a non-existent php_is_url()  
   function). (Ilia)
 - Fixed bug #43533 (escapeshellarg('') returns null). (Ilia)
index cd6e3b52772dfa5ef8c634c9f2db88c8ee8dec05..7c5e6089bc859863531ba967b5f718854b46bbd1 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),