summaryrefslogtreecommitdiff
path: root/ext/standard/php_dir.h
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-09-12 02:07:46 +0000
committerfoobar <sniper@php.net>2001-09-12 02:07:46 +0000
commit5275b603987d197daa8318b55d6a9118c83a7fde (patch)
treed20f698b5fd4008d3e5a3738d00235f93b5c1f8a /ext/standard/php_dir.h
parent8d88df34372472c67098ce9cff3ec37965e4712f (diff)
downloadphp-git-5275b603987d197daa8318b55d6a9118c83a7fde.tar.gz
Enable chroot() only if SAPI is CGI.
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 186a7cdc89..3b648c62df 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(HAVE_CHROOT) && !defined(ZTS)
+#if defined(HAVE_CHROOT) && !defined(ZTS) && ENABLE_CHROOT_FUNC
PHP_FUNCTION(chroot);
#endif
PHP_FUNCTION(getcwd);