]> granicus.if.org Git - php/commitdiff
MFH: cli should be allowed to use chroot() function.
authorWez Furlong <wez@php.net>
Thu, 13 Feb 2003 13:37:05 +0000 (13:37 +0000)
committerWez Furlong <wez@php.net>
Thu, 13 Feb 2003 13:37:05 +0000 (13:37 +0000)
ext/standard/config.m4

index 9d4fc7b9859621549da8e576e55cbb81e3f5603a..5de9aa1722e4b9a48fdf1e521d869d6a65993798 100644 (file)
@@ -233,7 +233,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