summaryrefslogtreecommitdiff
path: root/zend
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-04-13 21:03:15 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-04-13 21:03:15 +0200
commitcbc98a28b2c0b8373cff40e357f262bec1b759b2 (patch)
tree868550c8ee09856959c57c7228ba34bd152f391b /zend
parentfaa7df504380295296e3349e9360732d750554c3 (diff)
added PHPCPP_EXPORT, this may fix visibility issue #186
Diffstat (limited to 'zend')
-rw-r--r--zend/module.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/zend/module.h b/zend/module.h
index 40cd6f7..374c9d6 100644
--- a/zend/module.h
+++ b/zend/module.h
@@ -195,8 +195,10 @@ public:
if (!valid()) return false;
// the Zend engine sets a number of properties in the entry class, we do that here too
+ // note that it would be better to call zend_next_free_module() to find the next module
+ // number, but some users complain that this function is not always available
_entry->type = MODULE_TEMPORARY;
- _entry->module_number = zend_next_free_module();
+ _entry->module_number = zend_hash_num_elements(&module_registry) + 1;
_entry->handle = _handle;
// @todo does loading an extension even work in a multi-threading setup?