Skip to content

Commit b2c7eea

Browse files
author
Jérôme Loyet
committed
correct revision 297702 to make phpinfo output as text only when called from command line (-i switch), html otherwise
1 parent d9e1697 commit b2c7eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/fpm/fpm/fpm_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,6 @@ int main(int argc, char *argv[])
15501550

15511551
sapi_startup(&cgi_sapi_module);
15521552
cgi_sapi_module.php_ini_path_override = NULL;
1553-
cgi_sapi_module.phpinfo_as_text = 1;
15541553

15551554
#ifdef PHP_WIN32
15561555
_fmode = _O_BINARY; /* sets default for file streams to binary */
@@ -1624,6 +1623,7 @@ int main(int argc, char *argv[])
16241623
goto out;
16251624

16261625
case 'i': /* php info & quit */
1626+
cgi_sapi_module.phpinfo_as_text = 1;
16271627
cgi_sapi_module.startup(&cgi_sapi_module);
16281628
if (php_request_startup(TSRMLS_C) == FAILURE) {
16291629
SG(server_context) = NULL;

0 commit comments

Comments
 (0)