$OpenBSD$
--- ext/standard/config.m4.orig.port	Wed May 24 17:25:22 2017
+++ ext/standard/config.m4	Wed May 24 17:25:34 2017
@@ -370,31 +370,7 @@ else
   AC_MSG_RESULT(no)
 fi
 
-PHP_ENABLE_CHROOT_FUNC=no
-case "$PHP_SAPI" in
-  embed)
-    PHP_ENABLE_CHROOT_FUNC=yes
-  ;;
-
-  none)
-    for PROG in $PHP_BINARIES; do
-      case "$PROG" in
-        cgi|cli)
-          PHP_ENABLE_CHROOT_FUNC=yes
-        ;;
-
-        *)
-          PHP_ENABLE_CHROOT_FUNC=no
-          break
-        ;;
-      esac
-   done
-  ;;
-esac
-
-if test "$PHP_ENABLE_CHROOT_FUNC" = "yes"; then
-  AC_DEFINE(ENABLE_CHROOT_FUNC, 1, [Whether to enable chroot() function])
-fi
+AC_DEFINE(ENABLE_CHROOT_FUNC, 1, [Whether to enable chroot() function])
 
 dnl
 dnl Detect library functions needed by php dns_xxx functions
