]> granicus.if.org Git - php/commitdiff
Fixed bug #71109 (ZEND_MOD_CONFLICTS("xdebug") doesn't work)
authorXinchen Hui <laruence@gmail.com>
Sun, 13 Dec 2015 13:06:08 +0000 (05:06 -0800)
committerXinchen Hui <laruence@gmail.com>
Sun, 13 Dec 2015 13:06:08 +0000 (05:06 -0800)
NEWS
Zend/zend_API.c

diff --git a/NEWS b/NEWS
index 54bdeb7578aa0400cc5ee290a31cc7eb15e949f9..ee176e8a664c8296d4d3791addfe9e6518259594 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ PHP                                                                        NEWS
 ?? Jan 2016 PHP 7.0.2
 
 - Core:
+  . Fixed bug #71109 (ZEND_MOD_CONFLICTS("xdebug") doesn't work). (Laruence)
   . Fixed bug #71092 (Segmentation fault with return type hinting). (Laruence)
   . Fixed bug memleak in header_register_callback. (Laruence)
   . Fixed bug #71067 (Local object in class method stays in memory for each
index 0e6d89fc8a9c22dba793b263526de11f257b338d..8dbd904897120ee42a5d8e0b2aebc8901c878efc 100644 (file)
@@ -25,6 +25,7 @@
 #include "zend_execute.h"
 #include "zend_API.h"
 #include "zend_modules.h"
+#include "zend_extensions.h"
 #include "zend_constants.h"
 #include "zend_exceptions.h"
 #include "zend_closures.h"
@@ -2001,7 +2002,7 @@ ZEND_API zend_module_entry* zend_register_module_ex(zend_module_entry *module) /
                                lcname = zend_string_alloc(name_len, 0);
                                zend_str_tolower_copy(ZSTR_VAL(lcname), dep->name, name_len);
 
-                               if (zend_hash_exists(&module_registry, lcname)) {
+                               if (zend_hash_exists(&module_registry, lcname) || zend_get_extension(dep->name)) {
                                        zend_string_free(lcname);
                                        /* TODO: Check version relationship */
                                        zend_error(E_CORE_WARNING, "Cannot load module '%s' because conflicting module '%s' is already loaded", module->name, dep->name);