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

index c2bb9f032ebb75b4ecca6f2378c7cee80a7bd753..683dc6e1ce0bd295e8be904a97960c848843bcc6 100644 (file)
@@ -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