summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-01-18 22:25:48 +0000
committerZeev Suraski <zeev@php.net>2000-01-18 22:25:48 +0000
commit4b006cb8b0ca3e947c8fc9ef757aea8e2907804d (patch)
tree96c6119559bcfc0c2520eb70da136ac9e700f698
parent549cf0381ae0109b44655e84df15b2f86d5f815f (diff)
downloadphp-git-4b006cb8b0ca3e947c8fc9ef757aea8e2907804d.tar.gz
This doesn't seem to be necessary, and causes a leak in case of output_buffering=on
-rw-r--r--ext/standard/output.c26
-rw-r--r--main/output.c26
2 files changed, 14 insertions, 38 deletions
diff --git a/ext/standard/output.c b/ext/standard/output.c
index e1181c2735..f115a7bab6 100644
--- a/ext/standard/output.c
+++ b/ext/standard/output.c
@@ -108,28 +108,16 @@ PHP_RSHUTDOWN_FUNCTION(output);
zend_module_entry output_module_entry = {
"PHP_output",
php_output_functions,
- NULL, /* extension-wide startup function */
- NULL, /* extension-wide shutdown function */
- PHP_RINIT(output), /* per-request startup function */
- PHP_RSHUTDOWN(output), /* per-request shutdown function */
- NULL, /* information function */
- PHP_GINIT(output), /* global startup function */
- NULL, /* global shutdown function */
+ NULL, /* extension-wide startup function */
+ NULL, /* extension-wide shutdown function */
+ NULL, /* per-request startup function */
+ NULL, /* per-request shutdown function */
+ NULL, /* information function */
+ PHP_GINIT(output), /* global startup function */
+ NULL, /* global shutdown function */
STANDARD_MODULE_PROPERTIES_EX
};
-PHP_RINIT_FUNCTION(output)
-{
- php_output_startup();
-
- return SUCCESS;
-}
-
-PHP_RSHUTDOWN_FUNCTION(output)
-{
- /* XXX needs filling in */
- return SUCCESS;
-}
/* Start output layer */
PHPAPI void php_output_startup()
diff --git a/main/output.c b/main/output.c
index e1181c2735..f115a7bab6 100644
--- a/main/output.c
+++ b/main/output.c
@@ -108,28 +108,16 @@ PHP_RSHUTDOWN_FUNCTION(output);
zend_module_entry output_module_entry = {
"PHP_output",
php_output_functions,
- NULL, /* extension-wide startup function */
- NULL, /* extension-wide shutdown function */
- PHP_RINIT(output), /* per-request startup function */
- PHP_RSHUTDOWN(output), /* per-request shutdown function */
- NULL, /* information function */
- PHP_GINIT(output), /* global startup function */
- NULL, /* global shutdown function */
+ NULL, /* extension-wide startup function */
+ NULL, /* extension-wide shutdown function */
+ NULL, /* per-request startup function */
+ NULL, /* per-request shutdown function */
+ NULL, /* information function */
+ PHP_GINIT(output), /* global startup function */
+ NULL, /* global shutdown function */
STANDARD_MODULE_PROPERTIES_EX
};
-PHP_RINIT_FUNCTION(output)
-{
- php_output_startup();
-
- return SUCCESS;
-}
-
-PHP_RSHUTDOWN_FUNCTION(output)
-{
- /* XXX needs filling in */
- return SUCCESS;
-}
/* Start output layer */
PHPAPI void php_output_startup()