Skip to content

Commit e92ea1e

Browse files
committed
Fix unstable sapi test, fix GH-9140
1 parent b948f80 commit e92ea1e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

sapi/cgi/cgi_main.c

+1
Original file line numberDiff line numberDiff line change
@@ -2271,6 +2271,7 @@ consult the installation file that came with this distribution, or visit \n\
22712271

22722272
case 'a': /* interactive mode */
22732273
printf("Interactive mode enabled\n\n");
2274+
fflush(stdout);
22742275
break;
22752276

22762277
case 'C': /* don't chdir to the script directory */

sapi/cgi/tests/005.phpt

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ var_dump(`$php -n -f 'wrong' -a`);
2323
echo "Done\n";
2424
?>
2525
--EXPECT--
26-
string(51) "No input file specified.
27-
Interactive mode enabled
26+
string(51) "Interactive mode enabled
2827

28+
No input file specified.
2929
"
30-
string(51) "No input file specified.
31-
Interactive mode enabled
30+
string(51) "Interactive mode enabled
3231

32+
No input file specified.
3333
"
3434
Done

0 commit comments

Comments
 (0)