diff options
author | Derick Rethans <derick@php.net> | 2001-02-15 00:43:44 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2001-02-15 00:43:44 +0000 |
commit | 8cef8a9ca150c11f6d61d662fe88298760ad7583 (patch) | |
tree | 114d6511b47bd47be18c0b0adb936d13b78e0213 | |
parent | 28b2869ac863efb2477a9410b7ec6c9ccef6b58d (diff) | |
download | php-git-8cef8a9ca150c11f6d61d662fe88298760ad7583.tar.gz |
- chroot does not work on windows
-rw-r--r-- | ext/standard/basic_functions.c | 2 | ||||
-rw-r--r-- | ext/standard/dir.c | 4 | ||||
-rw-r--r-- | ext/standard/php_dir.h | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 40c37b85f8..303d3b4639 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -465,7 +465,9 @@ function_entry basic_functions[] = { PHP_FE(opendir, NULL) PHP_FE(closedir, NULL) PHP_FE(chdir, NULL) +#if !defined(ZEND_WIN32)&&!defined(ZTS) PHP_FE(chroot, NULL) +#endif PHP_FE(getcwd, NULL) PHP_FE(rewinddir, NULL) PHP_STATIC_FE("readdir", php_if_readdir, NULL) diff --git a/ext/standard/dir.c b/ext/standard/dir.c index 36a03efe78..39df84b267 100644 --- a/ext/standard/dir.c +++ b/ext/standard/dir.c @@ -222,6 +222,8 @@ PHP_FUNCTION(closedir) } /* }}} */ + +#if !defined(ZEND_WIN32)&&!defined(ZTS) /* {{{ proto int chroot(string directory) Change root directory */ @@ -253,6 +255,8 @@ PHP_FUNCTION(chroot) } /* }}} */ +#endif + /* {{{ proto int chdir(string directory) Change the current directory */ diff --git a/ext/standard/php_dir.h b/ext/standard/php_dir.h index 7e48f0783e..3326b94a0a 100644 --- a/ext/standard/php_dir.h +++ b/ext/standard/php_dir.h @@ -28,7 +28,9 @@ PHP_RINIT_FUNCTION(dir); PHP_FUNCTION(opendir); PHP_FUNCTION(closedir); PHP_FUNCTION(chdir); +#if !defined(ZEND_WIN32)&&!defined(ZTS) PHP_FUNCTION(chroot); +#endif PHP_FUNCTION(getcwd); PHP_FUNCTION(rewinddir); PHP_NAMED_FUNCTION(php_if_readdir); |