summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-02-13 13:35:55 +0000
committerWez Furlong <wez@php.net>2003-02-13 13:35:55 +0000
commitb81ea669a0700fc819acefaf1fd1915f7d2c5df6 (patch)
treea5014d974437cba085ef3c9f025c76c6e2fcaa8f
parent068c90bd1d2c82fcc52645e5309e1d970448e6ed (diff)
downloadphp-git-b81ea669a0700fc819acefaf1fd1915f7d2c5df6.tar.gz
cli should be allowed to have the chroot() function.
-rw-r--r--ext/standard/config.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/config.m4 b/ext/standard/config.m4
index c2bb9f032e..683dc6e1ce 100644
--- a/ext/standard/config.m4
+++ b/ext/standard/config.m4
@@ -258,7 +258,7 @@ dnl AC_CHECK_FUNCS(getopt_long getopt_long_only)
AC_CHECK_FUNCS(glob strfmon)
-if test "$PHP_SAPI" = "cgi"; then
+if test "$PHP_SAPI" = "cgi" -o "$PHP_SAPI" = "cli" -o "$PHP_SAPI" = "embed"; then
AC_DEFINE(ENABLE_CHROOT_FUNC, 1, [Whether to enable chroot() function])
fi