summaryrefslogtreecommitdiff
path: root/ext/standard/php_dir.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2001-02-15 05:21:27 +0000
committerSascha Schumann <sas@php.net>2001-02-15 05:21:27 +0000
commit637e8e14aa81e9e8d3c76cc501bc044efea2e5ac (patch)
tree88e5857a7b1f792747ac6f4731b0538c8cade280 /ext/standard/php_dir.h
parentc239da7e66a06a66c963802e3589889f6c8b4b6b (diff)
downloadphp-git-637e8e14aa81e9e8d3c76cc501bc044efea2e5ac.tar.gz
There might be more systems which do not support chroot, so we check
for the existence of it. Additionally, if chroot is not supported, the warn_not_available function is invoked now.
Diffstat (limited to 'ext/standard/php_dir.h')
-rw-r--r--ext/standard/php_dir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/php_dir.h b/ext/standard/php_dir.h
index 3326b94a0a..7bef9249e7 100644
--- a/ext/standard/php_dir.h
+++ b/ext/standard/php_dir.h
@@ -28,7 +28,7 @@ PHP_RINIT_FUNCTION(dir);
PHP_FUNCTION(opendir);
PHP_FUNCTION(closedir);
PHP_FUNCTION(chdir);
-#if !defined(ZEND_WIN32)&&!defined(ZTS)
+#if defined(HAVE_CHROOT) && !defined(ZTS)
PHP_FUNCTION(chroot);
#endif
PHP_FUNCTION(getcwd);