From: Zeev Suraski Date: Sun, 3 Sep 2000 15:56:54 +0000 (+0000) Subject: Fix init bug X-Git-Tag: php-4.0.3RC1~345 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48f13455bebdc96cc5958b9a9cab5ecabce8318d;p=php Fix init bug --- diff --git a/ext/standard/output.c b/ext/standard/output.c index 248c4a16cb..fa49c05035 100644 --- a/ext/standard/output.c +++ b/ext/standard/output.c @@ -50,7 +50,6 @@ static void php_output_init_globals(OLS_D) OG(implicit_flush) = 0; OG(output_start_filename) = NULL; OG(output_start_lineno) = 0; - OG(lock) = 0; } @@ -73,6 +72,7 @@ PHPAPI void php_output_startup() OG(php_body_write) = php_ub_body_write; OG(php_header_write) = sapi_module.ub_write; OG(nesting_level) = 0; + OG(lock) = 0; } PHPAPI int php_body_write(const char *str, uint str_length) diff --git a/main/output.c b/main/output.c index 248c4a16cb..fa49c05035 100644 --- a/main/output.c +++ b/main/output.c @@ -50,7 +50,6 @@ static void php_output_init_globals(OLS_D) OG(implicit_flush) = 0; OG(output_start_filename) = NULL; OG(output_start_lineno) = 0; - OG(lock) = 0; } @@ -73,6 +72,7 @@ PHPAPI void php_output_startup() OG(php_body_write) = php_ub_body_write; OG(php_header_write) = sapi_module.ub_write; OG(nesting_level) = 0; + OG(lock) = 0; } PHPAPI int php_body_write(const char *str, uint str_length)