diff options
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r-- | Zend/zend_API.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index c570aafa35..ec322a4300 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1384,3 +1384,14 @@ zend_bool zend_is_callable(zval *callable, zend_bool syntax_only, char **callabl return retval; } + +ZEND_API char *zend_get_module_version(char *module_name) +{ + zend_module_entry *module; + + if (zend_hash_find(&module_registry, module_name, strlen(module_name) + 1, + (void**)&module) == FAILURE) { + return NULL; + } + return module->version; +} |