From: Jani Taskinen Date: Tue, 15 Jul 2008 16:10:32 +0000 (+0000) Subject: MFH: Fixed potentially confusing error message on failure when no errors are logged X-Git-Tag: php-5.2.7RC1~203 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2975bbb34790bacbe6a56039c273d4fd34d1efa8;p=php MFH: Fixed potentially confusing error message on failure when no errors are logged --- diff --git a/main/streams/streams.c b/main/streams/streams.c index 0e3db11692..7349bb1480 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -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";