mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
MFB: Fixed potentially confusing error message on failure when no errors are logged
This commit is contained in:
parent
18f221c61d
commit
e8ac7c11d1
1 changed files with 5 additions and 1 deletions
|
@ -164,7 +164,11 @@ void php_stream_display_wrapper_errors(php_stream_wrapper *wrapper, const char *
|
|||
|
||||
free_msg = 1;
|
||||
} else {
|
||||
msg = strerror(errno);
|
||||
if (wrapper == &php_plain_files_wrapper) {
|
||||
msg = strerror(errno);
|
||||
} else {
|
||||
msg = "operation failed";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
msg = "no suitable wrapper could be found";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue