]> granicus.if.org Git - php/commitdiff
Fix warning as discussed with Wez.
authorMarcus Boerger <helly@php.net>
Mon, 18 Nov 2002 17:23:21 +0000 (17:23 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 18 Nov 2002 17:23:21 +0000 (17:23 +0000)
main/streams.c

index f18a783471934e1f2d89f0369e71d23bf617a018..7a1307c33a96b1e97a2fab9d7da0f495be2c1f52 100755 (executable)
@@ -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);