summaryrefslogtreecommitdiff
path: root/ext/swf/swf.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-09-12 04:18:20 +0000
committerAndi Gutmans <andi@php.net>2000-09-12 04:18:20 +0000
commit49cb1d620b13388e22088c0102d2d7f472c97fff (patch)
tree9c64033e8be54540d16b690f3ef913ee547ee0e5 /ext/swf/swf.c
parent88b469203c1d18b552b89c7fd94d0a796d7d2ec8 (diff)
downloadphp-git-49cb1d620b13388e22088c0102d2d7f472c97fff.tar.gz
- Always use V_* macros even if logic seems to be only using fullpath.
Diffstat (limited to 'ext/swf/swf.c')
-rw-r--r--ext/swf/swf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/swf/swf.c b/ext/swf/swf.c
index 6e61fdef77..32ec0c1aaf 100644
--- a/ext/swf/swf.c
+++ b/ext/swf/swf.c
@@ -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));
}
}
/* }}} */