cvs: php4 /ext/swf swf.c
| From: | Andi Gutmans | Date: | Tue, 12 Sep 2000 04:18:20 +0000 |
| Subject: | cvs: php4 /ext/swf swf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1724@lists.php.net to get a copy of this message | ||
andi Mon Sep 11 21:18:20 2000 EDT
Modified files:
/php4/ext/swf swf.c
Log:
- Always use V_* macros even if logic seems to be only using fullpath.
Index: php4/ext/swf/swf.c
diff -u php4/ext/swf/swf.c:1.24 php4/ext/swf/swf.c:1.25
--- php4/ext/swf/swf.c:1.24 Mon Sep 11 11:56:47 2000
+++ php4/ext/swf/swf.c Mon Sep 11 21:18:20 2000
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: swf.c,v 1.24 2000/09/11 18:56:47 andi Exp $ */
+/* $Id: swf.c,v 1.25 2000/09/12 04:18:20 andi Exp $ */
#include "php.h"
@@ -192,7 +192,7 @@
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 @@
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 @@
fclose(f);
- unlink((const char *)SWFG(tmpfile_name));
+ V_UNLINK((const char *)SWFG(tmpfile_name));
}
}
/* }}} */