From 551f1831a7dc0ef96082a6f95f565553be590798 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Mon, 2 Jul 2001 18:17:10 +0000 Subject: Fix a major thread safety bug in the output mechanism @- Fixed a major memory corruption bug in the thread safe version (Zeev) --- sapi/cgi/cgi_main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sapi/cgi/cgi_main.c') diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index bd1ae85873..151d33a979 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -502,6 +502,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine case '?': no_headers = 1; php_output_startup(); + php_output_activate(); SG(headers_sent) = 1; php_cgi_usage(argv[0]); php_end_ob_buffers(1); @@ -566,6 +567,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine case '?': no_headers = 1; php_output_startup(); + php_output_activate(); SG(headers_sent) = 1; php_cgi_usage(argv[0]); php_end_ob_buffers(1); @@ -592,6 +594,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine case 'm': /* list compiled in modules */ php_output_startup(); + php_output_activate(); SG(headers_sent) = 1; php_printf("Running PHP %s\n%s\n", PHP_VERSION , get_zend_version()); php_printf("[PHP Modules]\n"); -- cgit v1.2.1