diff options
author | Andi Gutmans <andi@php.net> | 2000-05-23 14:36:27 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-05-23 14:36:27 +0000 |
commit | 521f03c184fad08cc6943decd53df29f4a3ed830 (patch) | |
tree | 5e8f40e3843a91dc461b2e329d67ede4ac12252e /ext/standard | |
parent | 0eb51100b77996efbf0a728efe55ded996814025 (diff) | |
download | php-git-521f03c184fad08cc6943decd53df29f4a3ed830.tar.gz |
- Support virtual unlink()
Diffstat (limited to 'ext/standard')
-rw-r--r-- | ext/standard/file.c | 2 | ||||
-rw-r--r-- | ext/standard/link.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index 9c42e108f9..57569e73b0 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -231,7 +231,7 @@ static void _file_socket_dtor(int *sock) static void _file_upload_dtor(char *file) { - unlink(file); + V_UNLINK(file); } diff --git a/ext/standard/link.c b/ext/standard/link.c index ffe14235ef..2fb126afa3 100644 --- a/ext/standard/link.c +++ b/ext/standard/link.c @@ -181,7 +181,7 @@ PHP_FUNCTION(unlink) RETURN_FALSE; } - ret = unlink((*filename)->value.str.val); + ret = V_UNLINK((*filename)->value.str.val); if (ret == -1) { php_error(E_WARNING, "Unlink failed (%s)", strerror(errno)); RETURN_FALSE; |