]> granicus.if.org Git - php/commitdiff
- Start nuking not needed GINIT
authorAndi Gutmans <andi@php.net>
Tue, 22 May 2001 19:19:04 +0000 (19:19 +0000)
committerAndi Gutmans <andi@php.net>
Tue, 22 May 2001 19:19:04 +0000 (19:19 +0000)
ext/standard/basic_functions.c
ext/standard/basic_functions.h
ext/standard/output.c
ext/standard/php_output.h
main/output.c
main/php_output.h

index 7ec8294132be044cfbd293fe57353a59739b0673..99a29f0a85d1329223bbd24d40df708dc57922c9 100644 (file)
@@ -653,9 +653,7 @@ zend_module_entry basic_functions_module = {
        PHP_RINIT(basic),                       /* request startup */
        PHP_RSHUTDOWN(basic),           /* request shutdown */
        PHP_MINFO(basic),                       /* extension info */
-       PHP_GINIT(basic),                       /* global startup function */
-       NULL,                                           /* global shutdown function */
-       STANDARD_MODULE_PROPERTIES_EX
+       STANDARD_MODULE_PROPERTIES
 };
 
 #if defined(HAVE_PUTENV)
@@ -749,6 +747,7 @@ PHP_MINIT_FUNCTION(basic)
        register_html_constants(INIT_FUNC_ARGS_PASSTHRU);
        register_string_constants(INIT_FUNC_ARGS_PASSTHRU);
 
+       PHP_MINIT(output)(INIT_FUNC_ARGS_PASSTHRU);
        PHP_MINIT(regex)(INIT_FUNC_ARGS_PASSTHRU);
        PHP_MINIT(file)(INIT_FUNC_ARGS_PASSTHRU);
        PHP_MINIT(pack)(INIT_FUNC_ARGS_PASSTHRU);
@@ -913,14 +912,6 @@ PHP_RSHUTDOWN_FUNCTION(basic)
 }
 
 
-PHP_GINIT_FUNCTION(basic)
-{
-       PHP_GINIT(output)(GINIT_FUNC_ARGS_PASSTHRU);
-
-       return SUCCESS;
-}
-
-
 PHP_MINFO_FUNCTION(basic)
 {
        php_info_print_table_start();
index 4169c7e70b9c08e102df09390d8549b345a38712..596829a34f4ee9f0036f42eade9c6e34225227c5 100644 (file)
@@ -39,7 +39,6 @@ PHP_MSHUTDOWN_FUNCTION(basic);
 PHP_RINIT_FUNCTION(basic);
 PHP_RSHUTDOWN_FUNCTION(basic);
 PHP_MINFO_FUNCTION(basic);
-PHP_GINIT_FUNCTION(basic);
 
 PHP_FUNCTION(constant);
 PHP_FUNCTION(intval);
index d5862ad5a77fcadf9ff2c40ce07d571863889361..701c20d5f45624d1527f3608aeac71de3d15b302 100644 (file)
@@ -59,7 +59,7 @@ static void php_output_init_globals(OLS_D)
 }
 
 
-PHP_GINIT_FUNCTION(output)
+PHP_MINIT_FUNCTION(output)
 {
 #ifdef ZTS
        output_globals_id = ts_allocate_id(sizeof(php_output_globals), (ts_allocate_ctor) php_output_init_globals, NULL);
index 39bb8954b2b0518cd0149006c1c0e39b59aab49f..ab9f7999058bf5d565de325d03d12795753f109e 100644 (file)
@@ -47,7 +47,7 @@ PHP_FUNCTION(ob_get_contents);
 PHP_FUNCTION(ob_get_length);
 PHP_FUNCTION(ob_implicit_flush);
 
-PHP_GINIT_FUNCTION(output);
+PHP_MINIT_FUNCTION(output);
 
 typedef struct _php_ob_buffer {
        char *buffer;
index d5862ad5a77fcadf9ff2c40ce07d571863889361..701c20d5f45624d1527f3608aeac71de3d15b302 100644 (file)
@@ -59,7 +59,7 @@ static void php_output_init_globals(OLS_D)
 }
 
 
-PHP_GINIT_FUNCTION(output)
+PHP_MINIT_FUNCTION(output)
 {
 #ifdef ZTS
        output_globals_id = ts_allocate_id(sizeof(php_output_globals), (ts_allocate_ctor) php_output_init_globals, NULL);
index 39bb8954b2b0518cd0149006c1c0e39b59aab49f..ab9f7999058bf5d565de325d03d12795753f109e 100644 (file)
@@ -47,7 +47,7 @@ PHP_FUNCTION(ob_get_contents);
 PHP_FUNCTION(ob_get_length);
 PHP_FUNCTION(ob_implicit_flush);
 
-PHP_GINIT_FUNCTION(output);
+PHP_MINIT_FUNCTION(output);
 
 typedef struct _php_ob_buffer {
        char *buffer;