]> granicus.if.org Git - php/commitdiff
- chroot does not work on windows
authorDerick Rethans <derick@php.net>
Thu, 15 Feb 2001 00:43:44 +0000 (00:43 +0000)
committerDerick Rethans <derick@php.net>
Thu, 15 Feb 2001 00:43:44 +0000 (00:43 +0000)
ext/standard/basic_functions.c
ext/standard/dir.c
ext/standard/php_dir.h

index 40c37b85f8c1c4523aa0ddb3bce1e4ef501ed1a0..303d3b46390cf40830aa60eb43f03bb4f8e23868 100644 (file)
@@ -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)
index 36a03efe783e9f24d19aba9d43ed8beb912c7a63..39df84b267abb6ce499116eff6954dd89b88ce68 100644 (file)
@@ -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 */
 
index 7e48f0783e4e0319214e637ed704a32484aac0b5..3326b94a0a92dfa22ea3654df7b6dec85da42369 100644 (file)
@@ -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);