output is started in php_module_startup(), no need to start it twice

fixes leaks in sapi/cgi/tests/005.phpt
This commit is contained in:
Antony Dovgal 2007-09-08 11:10:37 +00:00
parent 67e6942045
commit eec31a3df3

View file

@ -1422,7 +1422,6 @@ consult the installation file that came with this distribution, or visit \n\
case '?': case '?':
fcgi_shutdown(); fcgi_shutdown();
no_headers = 1; no_headers = 1;
php_output_tearup();
SG(headers_sent) = 1; SG(headers_sent) = 1;
php_cgi_usage(argv[0]); php_cgi_usage(argv[0]);
php_output_end_all(TSRMLS_C); php_output_end_all(TSRMLS_C);
@ -1450,7 +1449,6 @@ consult the installation file that came with this distribution, or visit \n\
if (!cgi && !fastcgi) { if (!cgi && !fastcgi) {
if (cgi_sapi_module.php_ini_path_override && cgi_sapi_module.php_ini_ignore) { if (cgi_sapi_module.php_ini_path_override && cgi_sapi_module.php_ini_ignore) {
no_headers = 1; no_headers = 1;
php_output_tearup();
SG(headers_sent) = 1; SG(headers_sent) = 1;
php_printf("You cannot use both -n and -c switch. Use -h for help.\n"); php_printf("You cannot use both -n and -c switch. Use -h for help.\n");
php_output_end_all(TSRMLS_C); php_output_end_all(TSRMLS_C);
@ -1506,7 +1504,6 @@ consult the installation file that came with this distribution, or visit \n\
break; break;
case 'm': /* list compiled in modules */ case 'm': /* list compiled in modules */
php_output_tearup();
SG(headers_sent) = 1; SG(headers_sent) = 1;
php_printf("[PHP Modules]\n"); php_printf("[PHP Modules]\n");
print_modules(TSRMLS_C); print_modules(TSRMLS_C);