diff options
author | Marcus Boerger <helly@php.net> | 2002-11-18 17:23:21 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-11-18 17:23:21 +0000 |
commit | f0daa5c6d915ad23c783bc7c13c84155dfeacdba (patch) | |
tree | 79121aba1e31a4b8aba1d14b435c276253a06819 | |
parent | 58b26398de0ecf886049d93dff1924a465a5be74 (diff) | |
download | php-git-f0daa5c6d915ad23c783bc7c13c84155dfeacdba.tar.gz |
Fix warning as discussed with Wez.
-rwxr-xr-x | main/streams.c | 2 |
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); |