From: Ilia Alshanetsky Date: Wed, 12 Feb 2003 16:50:51 +0000 (+0000) Subject: Removed zend_get_module(), this function is not used by anything and more X-Git-Tag: RELEASE_0_5~1077 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2bd043e7bbfcdef586bb9d8a66f60bfe5c6e61e;p=php Removed zend_get_module(), this function is not used by anything and more importantly. it does not work. It tries to find data based on numeric keys in hash table using string keys. --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index ec7ba558de..ea58f98610 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1373,17 +1373,6 @@ ZEND_API zend_class_entry *zend_register_internal_class(zend_class_entry *orig_c } -ZEND_API zend_module_entry *zend_get_module(int module_number) -{ - zend_module_entry *module; - - if (zend_hash_index_find(&module_registry, module_number, (void **) &module)==SUCCESS) { - return module; - } else { - return NULL; - } -} - ZEND_API int zend_set_hash_symbol(zval *symbol, char *name, int name_length, zend_bool is_ref, int num_symbol_tables, ...) { diff --git a/Zend/zend_API.h b/Zend/zend_API.h index 9cc302e3b0..445d855229 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -135,7 +135,6 @@ ZEND_API int zend_register_module(zend_module_entry *module_entry); ZEND_API zend_class_entry *zend_register_internal_class(zend_class_entry *class_entry TSRMLS_DC); ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce, char *parent_name TSRMLS_DC); -ZEND_API zend_module_entry *zend_get_module(int module_number); ZEND_API int zend_disable_function(char *function_name, uint function_name_length TSRMLS_DC); ZEND_API void zend_wrong_param_count(TSRMLS_D);