diff options
author | Zeev Suraski <zeev@php.net> | 2001-07-02 18:17:10 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-07-02 18:17:10 +0000 |
commit | 551f1831a7dc0ef96082a6f95f565553be590798 (patch) | |
tree | 24793ff58625dbd68364233fd5d9d687b4adcb18 /sapi | |
parent | 610ebfe3de1c0a1acd63bb7e20bed9a997760413 (diff) | |
download | php-git-551f1831a7dc0ef96082a6f95f565553be590798.tar.gz |
Fix a major thread safety bug in the output mechanism
@- Fixed a major memory corruption bug in the thread safe version (Zeev)
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/cgi/cgi_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
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"); |