summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-08-06 16:22:07 +0000
committerAndi Gutmans <andi@php.net>2000-08-06 16:22:07 +0000
commitc756ae2d9fbdd64f3f7f72eeaa5190c89246077a (patch)
tree6b48a83a7720f3226ccbdccf169b242f69475c4f /main/php.h
parent868e3b1db8edd448c1b327d3549697d987b635f5 (diff)
downloadphp-git-c756ae2d9fbdd64f3f7f72eeaa5190c89246077a.tar.gz
Virtualize realpath, chmod, chown and utime
This should fix #5935 and #5904 @- Virtualize realpath, chmod, chown and utime (Stas)
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/main/php.h b/main/php.h
index a3f99a3c5f..c28731b43d 100644
--- a/main/php.h
+++ b/main/php.h
@@ -303,6 +303,7 @@ PHPAPI int cfg_get_string(char *varname, char **result);
#define V_CHDIR(path) virtual_chdir(path)
#define V_CHDIR_FILE(path) virtual_chdir_file(path)
#define V_GETWD(buf)
+#define V_REALPATH(path,realpath) virtual_realpath(path,realpath)
#define V_STAT(path, buff) virtual_stat(path, buff)
#ifdef PHP_WIN32
#define V_LSTAT(path, buff) virtual_stat(path, buff)
@@ -314,7 +315,13 @@ PHPAPI int cfg_get_string(char *varname, char **result);
#define V_RMDIR(pathname) virtual_rmdir(pathname)
#define V_OPENDIR(pathname) virtual_opendir(pathname)
#define V_POPEN(command, type) virtual_popen(command, type)
-
+#if HAVE_UTIME
+#define V_UTIME(path,time) virtual_utime(path,time)
+#endif
+#define V_CHMOD(path,mode) virtual_chmod(path,mode)
+#ifndef PHP_WIN32
+#define V_CHOWN(path,owner,group) virtual_chown(path,owner,group)
+#endif
#else
#define V_GETCWD(buff, size) getcwd(buff,size)
@@ -331,7 +338,14 @@ PHPAPI int cfg_get_string(char *varname, char **result);
#define V_RMDIR(pathname) rmdir(pathname)
#define V_OPENDIR(pathname) opendir(pathname)
#define V_POPEN(command, type) popen(command, type)
-
+#define V_REALPATH(path,realpath) realpath(path,realpath)
+#if HAVE_UTIME
+#define V_UTIME(path,time) utime(path,time)
+#endif
+#define V_CHMOD(path,mode) chmod(path,mode)
+#ifndef PHP_WIN32
+#define V_CHOWN(path,owner,group) chown(path,owner,group)
+#endif
#endif
#include "zend_constants.h"