]> granicus.if.org Git - php/commitdiff
- Always use V_* macros even if logic seems to be only using fullpath.
authorAndi Gutmans <andi@php.net>
Tue, 12 Sep 2000 04:18:20 +0000 (04:18 +0000)
committerAndi Gutmans <andi@php.net>
Tue, 12 Sep 2000 04:18:20 +0000 (04:18 +0000)
ext/swf/swf.c

index 6e61fdef77cf2e4831c6de3c24fb08941f8f901f..32ec0c1aafcf1bf2c5d555aef4a67236c6d32e12 100644 (file)
@@ -192,7 +192,7 @@ PHP_FUNCTION(swf_openfile)
                        free_na = 0;
                        RETURN_FALSE;
                }
-               unlink((const char *)na);
+               V_UNLINK((const char *)na);
                fclose(fp);
                free_na = 1;
                SWFG(use_file) = 0;
@@ -238,7 +238,7 @@ PHP_FUNCTION(swf_closefile)
                char buf[4096];
                int b;
                
-               if ((f = fopen(SWFG(tmpfile_name), "r")) == NULL) {
+               if ((f = V_FOPEN(SWFG(tmpfile_name), "r")) == NULL) {
                        php_error(E_WARNING, "Cannot create temporary file for stdout support with SWF");
                        RETURN_NULL();
                }
@@ -248,7 +248,7 @@ PHP_FUNCTION(swf_closefile)
                
                fclose(f);
                
-               unlink((const char *)SWFG(tmpfile_name));
+               V_UNLINK((const char *)SWFG(tmpfile_name));
        }
 }
 /* }}} */