]> granicus.if.org Git - php/commitdiff
Removed zend_get_module(), this function is not used by anything and more
authorIlia Alshanetsky <iliaa@php.net>
Wed, 12 Feb 2003 16:50:51 +0000 (16:50 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 12 Feb 2003 16:50:51 +0000 (16:50 +0000)
importantly. it does not work. It tries to find data based on numeric keys
in hash table using string keys.

Zend/zend_API.c
Zend/zend_API.h

index ec7ba558de568e0bcd509d2bf68d89bb56d1c3c5..ea58f986101d5f6089040d93f40d1ef30c29ad3a 100644 (file)
@@ -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, ...)
 {
index 9cc302e3b01c14ec30f34e9e52854f56a23f0403..445d8552292866d79783182f0e4564f12161f738 100644 (file)
@@ -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);