summaryrefslogtreecommitdiff
path: root/ext/standard/output.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-03-04 01:45:19 +0000
committerZeev Suraski <zeev@php.net>2001-03-04 01:45:19 +0000
commitc64fe7fbe1055ee166c7ad206c2ad6091e098d65 (patch)
treeb84d51688c9de23b84f3e603f580b7cabaca0ada /ext/standard/output.c
parent0117c7848e0eeb08035fe381a83b2da8d2b8eeae (diff)
downloadphp-git-c64fe7fbe1055ee166c7ad206c2ad6091e098d65.tar.gz
Fix non-thread safe mode
Diffstat (limited to 'ext/standard/output.c')
-rw-r--r--ext/standard/output.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/standard/output.c b/ext/standard/output.c
index e484ea777c..1b4a656981 100644
--- a/ext/standard/output.c
+++ b/ext/standard/output.c
@@ -68,18 +68,24 @@ PHP_GINIT_FUNCTION(output)
PHPAPI void php_output_startup()
{
OLS_FETCH();
- ELS_FETCH();
OG(php_body_write) = php_ub_body_write;
OG(php_header_write) = sapi_module.ub_write;
OG(nesting_level) = 0;
OG(lock) = 0;
+}
+
+
+void php_output_register_constants()
+{
+ ELS_FETCH();
REGISTER_MAIN_LONG_CONSTANT("PHP_OUTPUT_HANDLER_START", PHP_OUTPUT_HANDLER_START, CONST_CS | CONST_PERSISTENT);
REGISTER_MAIN_LONG_CONSTANT("PHP_OUTPUT_HANDLER_CONT", PHP_OUTPUT_HANDLER_CONT, CONST_CS | CONST_PERSISTENT);
REGISTER_MAIN_LONG_CONSTANT("PHP_OUTPUT_HANDLER_END", PHP_OUTPUT_HANDLER_END, CONST_CS | CONST_PERSISTENT);
}
+
PHPAPI int php_body_write(const char *str, uint str_length)
{
OLS_FETCH();