summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-05-23 17:02:21 +0000
committerAndi Gutmans <andi@php.net>2000-05-23 17:02:21 +0000
commit617266e33efa1739e76dc8a2e34d028f80815ac2 (patch)
treec92d0bb864df1d6feec5efebb04bd697f9f19223 /main/php.h
parent417f74451f1252b6153b34e09cfaebf104c24987 (diff)
downloadphp-git-617266e33efa1739e76dc8a2e34d028f80815ac2.tar.gz
- Virtual current working directory is now enabled
- Added support for mkdir()/rmdir() and more
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/php.h b/main/php.h
index 9cc2f8b040..e6f391d4a2 100644
--- a/main/php.h
+++ b/main/php.h
@@ -289,7 +289,7 @@ PHPAPI int cfg_get_string(char *varname, char **result);
#define PUTS_H(str) php_header_write((str), strlen((str)))
#define PUTC_H(c) (php_header_write(&(c), 1), (c))
-/* #define VIRTUAL_DIR */
+#define VIRTUAL_DIR
#include "php_virtual_cwd.h"
/* Virtual current directory support */
@@ -309,6 +309,8 @@ PHPAPI int cfg_get_string(char *varname, char **result);
#define V_LSTAT(path, buff) virtual_lstat(path, buff)
#endif
#define V_UNLINK(path) virtual_unlink(path)
+#define V_MKDIR(pathname, mode) virtual_mkdir(pathname, mode)
+#define V_RMDIR(pathname) virtual_rmdir(pathname)
#else
#define V_GETCWD(buff, size) getcwd(buff,size)
#define V_FOPEN(path, mode) fopen(path, mode)
@@ -320,6 +322,8 @@ PHPAPI int cfg_get_string(char *varname, char **result);
#define V_STAT(path, buff) stat(path, buff)
#define V_LSTAT(path, buff) lstat(path, buff)
#define V_UNLINK(path) unlink(path)
+#define V_MKDIR(pathname, mode) mkdir(pathname, mode)
+#define V_RMDIR(pathname) rmdir(pathname)
#endif
#include "zend_constants.h"