summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmain/streams.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/streams.c b/main/streams.c
index f18a783471..7a1307c33a 100755
--- a/main/streams.c
+++ b/main/streams.c
@@ -1374,6 +1374,8 @@ static int php_stdiop_close(php_stream *stream, int close_handle TSRMLS_DC)
} else {
ret = fclose(data->file);
}
+ } else {
+ return 0;/* everything should be closed already -> success*/
}
if (data->temp_file_name) {
unlink(data->temp_file_name);