helly           Mon Nov 18 12:23:22 2002 EDT

  Modified files:              
    /php4/main  streams.c 
  Log:
  Fix warning as discussed with Wez.
  
  
Index: php4/main/streams.c
diff -u php4/main/streams.c:1.129 php4/main/streams.c:1.130
--- php4/main/streams.c:1.129   Mon Nov 18 07:37:19 2002
+++ php4/main/streams.c Mon Nov 18 12:23:21 2002
@@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: streams.c,v 1.129 2002/11/18 12:37:19 wez Exp $ */
+/* $Id: streams.c,v 1.130 2002/11/18 17:23:21 helly Exp $ */
 
 #define _GNU_SOURCE
 #include "php.h"
@@ -1374,6 +1374,8 @@
                        } else {
                                ret = fclose(data->file);
                        }
+               } else {
+                       return 0;/* everything should be closed already -> success*/
                }
                if (data->temp_file_name) {
                        unlink(data->temp_file_name);



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to