summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2008-04-28 22:37:31 +0000
committerGreg Beaver <cellog@php.net>2008-04-28 22:37:31 +0000
commitc46d651b3e008e189f351217b8084abaa3a9bda6 (patch)
treed77a19d3f94bd46aa61beabeefb7539db11b1bc6 /main
parentf9300287516b981f56eed460f187c91168012db2 (diff)
downloadphp-git-c46d651b3e008e189f351217b8084abaa3a9bda6.tar.gz
Fixed potentially confusing error message on failure when no errors are logged
Diffstat (limited to 'main')
-rwxr-xr-xmain/streams/streams.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/streams/streams.c b/main/streams/streams.c
index 614470fc7b..3a40e33267 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";