Skip to content

Commit 07b3399

Browse files
committed
Fixed bug #71109 (ZEND_MOD_CONFLICTS("xdebug") doesn't work)
1 parent 4171a8f commit 07b3399

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ PHP NEWS
33
?? Jan 2016 PHP 7.0.2
44

55
- Core:
6+
. Fixed bug #71109 (ZEND_MOD_CONFLICTS("xdebug") doesn't work). (Laruence)
67
. Fixed bug #71092 (Segmentation fault with return type hinting). (Laruence)
78
. Fixed bug memleak in header_register_callback. (Laruence)
89
. Fixed bug #71067 (Local object in class method stays in memory for each

Zend/zend_API.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "zend_execute.h"
2626
#include "zend_API.h"
2727
#include "zend_modules.h"
28+
#include "zend_extensions.h"
2829
#include "zend_constants.h"
2930
#include "zend_exceptions.h"
3031
#include "zend_closures.h"
@@ -2001,7 +2002,7 @@ ZEND_API zend_module_entry* zend_register_module_ex(zend_module_entry *module) /
20012002
lcname = zend_string_alloc(name_len, 0);
20022003
zend_str_tolower_copy(ZSTR_VAL(lcname), dep->name, name_len);
20032004

2004-
if (zend_hash_exists(&module_registry, lcname)) {
2005+
if (zend_hash_exists(&module_registry, lcname) || zend_get_extension(dep->name)) {
20052006
zend_string_free(lcname);
20062007
/* TODO: Check version relationship */
20072008
zend_error(E_CORE_WARNING, "Cannot load module '%s' because conflicting module '%s' is already loaded", module->name, dep->name);

0 commit comments

Comments
 (0)