File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ PHP NEWS
13
13
. Fixed bug #62475 (variant_* functions causes crash when null given as an
14
14
argument). (Felipe)
15
15
. Fixed bug #60732 (php_error_docref links to invalid pages). (Jakub Vrana)
16
+ . Fixed bug #65226 (chroot() does not get enabled). (Anatol)
16
17
17
18
- CGI:
18
19
. Fixed Bug #65143 (Missing php-cgi man page). (Remi)
Original file line number Diff line number Diff line change @@ -358,7 +358,29 @@ else
358
358
AC_MSG_RESULT ( no )
359
359
fi
360
360
361
- if test "$PHP_SAPI" = "cgi" || test "$PHP_SAPI" = "cli" || test "$PHP_SAPI" = "embed"; then
361
+ PHP_ENABLE_CHROOT_FUNC=no
362
+ case "$PHP_SAPI" in
363
+ embed)
364
+ PHP_ENABLE_CHROOT_FUNC=yes
365
+ ;;
366
+
367
+ none)
368
+ for PROG in $PHP_BINARIES; do
369
+ case "$PROG" in
370
+ cgi|cli)
371
+ PHP_ENABLE_CHROOT_FUNC=yes
372
+ ;;
373
+
374
+ *)
375
+ PHP_ENABLE_CHROOT_FUNC=no
376
+ break
377
+ ;;
378
+ esac
379
+ done
380
+ ;;
381
+ esac
382
+
383
+ if test "$PHP_ENABLE_CHROOT_FUNC" = "yes"; then
362
384
AC_DEFINE ( ENABLE_CHROOT_FUNC , 1 , [ Whether to enable chroot() function] )
363
385
fi
364
386
You can’t perform that action at this time.
0 commit comments