@@ -123,8 +123,6 @@ typedef struct _user_tick_function_entry {
123
123
static void user_shutdown_function_dtor (zval * zv );
124
124
static void user_tick_function_dtor (user_tick_function_entry * tick_function_entry );
125
125
126
- static HashTable basic_submodules ;
127
-
128
126
#undef sprintf
129
127
130
128
/* {{{ arginfo */
@@ -3579,32 +3577,21 @@ PHPAPI double php_get_inf(void) /* {{{ */
3579
3577
/* }}} */
3580
3578
3581
3579
#define BASIC_MINIT_SUBMODULE (module ) \
3582
- if (PHP_MINIT(module)(INIT_FUNC_ARGS_PASSTHRU) = = SUCCESS) {\
3583
- BASIC_ADD_SUBMODULE(module) ; \
3580
+ if (PHP_MINIT(module)(INIT_FUNC_ARGS_PASSTHRU) ! = SUCCESS) {\
3581
+ return FAILURE ; \
3584
3582
}
3585
3583
3586
- #define BASIC_ADD_SUBMODULE (module ) \
3587
- zend_hash_str_add_empty_element(&basic_submodules, #module, strlen(#module));
3588
-
3589
3584
#define BASIC_RINIT_SUBMODULE (module ) \
3590
- if (zend_hash_str_exists(&basic_submodules, #module, strlen(#module))) { \
3591
- PHP_RINIT(module)(INIT_FUNC_ARGS_PASSTHRU); \
3592
- }
3585
+ PHP_RINIT(module)(INIT_FUNC_ARGS_PASSTHRU);
3593
3586
3594
3587
#define BASIC_MINFO_SUBMODULE (module ) \
3595
- if (zend_hash_str_exists(&basic_submodules, #module, strlen(#module))) { \
3596
- PHP_MINFO(module)(ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU); \
3597
- }
3588
+ PHP_MINFO(module)(ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU);
3598
3589
3599
3590
#define BASIC_RSHUTDOWN_SUBMODULE (module ) \
3600
- if (zend_hash_str_exists(&basic_submodules, #module, strlen(#module))) { \
3601
- PHP_RSHUTDOWN(module)(SHUTDOWN_FUNC_ARGS_PASSTHRU); \
3602
- }
3591
+ PHP_RSHUTDOWN(module)(SHUTDOWN_FUNC_ARGS_PASSTHRU);
3603
3592
3604
3593
#define BASIC_MSHUTDOWN_SUBMODULE (module ) \
3605
- if (zend_hash_str_exists(&basic_submodules, #module, strlen(#module))) { \
3606
- PHP_MSHUTDOWN(module)(SHUTDOWN_FUNC_ARGS_PASSTHRU); \
3607
- }
3594
+ PHP_MSHUTDOWN(module)(SHUTDOWN_FUNC_ARGS_PASSTHRU);
3608
3595
3609
3596
PHP_MINIT_FUNCTION (basic ) /* {{{ */
3610
3597
{
@@ -3620,8 +3607,6 @@ PHP_MINIT_FUNCTION(basic) /* {{{ */
3620
3607
#endif
3621
3608
#endif
3622
3609
3623
- zend_hash_init (& basic_submodules , 0 , NULL , NULL , 1 );
3624
-
3625
3610
BG (incomplete_class ) = incomplete_class_entry = php_create_incomplete_class ();
3626
3611
3627
3612
REGISTER_LONG_CONSTANT ("CONNECTION_ABORTED" , PHP_CONNECTION_ABORTED , CONST_CS | CONST_PERSISTENT );
@@ -3682,9 +3667,6 @@ PHP_MINIT_FUNCTION(basic) /* {{{ */
3682
3667
register_html_constants (INIT_FUNC_ARGS_PASSTHRU );
3683
3668
register_string_constants (INIT_FUNC_ARGS_PASSTHRU );
3684
3669
3685
- BASIC_ADD_SUBMODULE (dl )
3686
- BASIC_ADD_SUBMODULE (mail )
3687
- BASIC_ADD_SUBMODULE (streams )
3688
3670
BASIC_MINIT_SUBMODULE (file )
3689
3671
BASIC_MINIT_SUBMODULE (pack )
3690
3672
BASIC_MINIT_SUBMODULE (browscap )
@@ -3784,7 +3766,6 @@ PHP_MSHUTDOWN_FUNCTION(basic) /* {{{ */
3784
3766
BASIC_MSHUTDOWN_SUBMODULE (random )
3785
3767
BASIC_MSHUTDOWN_SUBMODULE (password )
3786
3768
3787
- zend_hash_destroy (& basic_submodules );
3788
3769
return SUCCESS ;
3789
3770
}
3790
3771
/* }}} */
0 commit comments