on exit, resultiong in no output at all when "output-buffering=On"
( BUG id#3420 )
php_ini_path = strdup(ap_php_optarg); /* intentional leak */
break;
case '?':
+ no_headers = 1;
php_output_startup();
SG(headers_sent) = 1;
php_cgi_usage(argv[0]);
+ php_end_ob_buffering(1);
exit(1);
break;
}
no_headers = 1;
break;
case 'v':
+ no_headers = 1;
if (!cgi_started) {
if (php_request_startup(CLS_C ELS_CC PLS_CC SLS_CC)==FAILURE) {
php_module_shutdown();
SG(headers_sent) = 1;
}
php_printf("%s\n", PHP_VERSION);
+ php_end_ob_buffering(1);
exit(1);
break;
case 'i':
CG(extended_info) = 1;
break;
case 'h':
- case '?':
+ case '?':
+ no_headers = 1;
php_output_startup();
SG(headers_sent) = 1;
php_cgi_usage(argv[0]);
+ php_end_ob_buffering(1);
exit(1);
break;
case 'd':