mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix GH-11141: Could not open input file: should be sent to stderr
I grepped for php_printf cases in main/ and sapi/ and converted the cases which clearly indicate errors to fprintf(stderr, ...), like suggested in the linked issue. Closes GH-11163.
This commit is contained in:
parent
42aaac3525
commit
ac5920f92b
8 changed files with 17 additions and 13 deletions
|
@ -1347,7 +1347,7 @@ static int cli_main( int argc, char * argv[] )
|
|||
php_request_shutdown( NULL );
|
||||
}
|
||||
} else {
|
||||
php_printf("Could not open input file: %s.\n", *p);
|
||||
fprintf(stderr, "Could not open input file: %s.\n", *p);
|
||||
}
|
||||
} else {
|
||||
cli_usage();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue