Edit report at https://bugs.php.net/bug.php?id=65226&edit=1
ID: 65226 Updated by: a...@php.net Reported by: josh at servebyte dot com Summary: chroot() does not get enabled Status: Closed Type: Bug Package: CGI/CLI related Operating System: Debian 7 PHP Version: 5.5.0 -Assigned To: +Assigned To: ab Block user comment: N Private report: N New Comment: Please test on 5.4+ git. You still have to disable any SAPI other than CLI/CGI/embed for that to work. Previous Comments: ------------------------------------------------------------------------ [2013-07-10 22:52:59] a...@php.net Automatic comment on behalf of ab Revision: http://git.php.net/?p=php-src.git;a=commit;h=2acc38627092123ac462f3a23780bf887bf69286 Log: Fixed bug #65226 chroot() does not get enabled ------------------------------------------------------------------------ [2013-07-10 19:18:27] josh at servebyte dot com Adding "--enable-cgi --enable-cli" to configure didn't change anything. $PHP_SAPI is in A LOT of files. I don't know where to start looking for it. :( ------------------------------------------------------------------------ [2013-07-10 17:40:46] a...@php.net That's clear that you can trick it to out the desired define :) ... Ok, i also see 'checking for chroot ... yes', but i do --enable-cgi --enable-cli too, not just ./configure . That might be the difference. Haven't looked where PHP_SAPI is set, you could debug it. config.nice is created once ./configure was run, so you don't have to type all the options again. ------------------------------------------------------------------------ [2013-07-10 17:24:46] josh at servebyte dot com There's no file called config.nice in the 5.5.0 tar? ./configure | grep chroot checking for chroot... yes I can get it working by editing the configure file and commenting these lines like so; if test "$PHP_SAPI" = "cgi" || test "$PHP_SAPI" = "cli" || test "$PHP_SAPI" = $ $as_echo "#define ENABLE_CHROOT_FUNC 1" >>confdefs.h fi to #if test "$PHP_SAPI" = "cgi" || test "$PHP_SAPI" = "cli" || test "$PHP_SAPI" = $ $as_echo "#define ENABLE_CHROOT_FUNC 1" >>confdefs.h #fi The variable $PHP_SAPI is set to "none" so it seems to be a configure bug of some sort. ------------------------------------------------------------------------ [2013-07-10 17:09:48] a...@php.net #if defined(HAVE_CHROOT) && !defined(ZTS) && ENABLE_CHROOT_FUNC thats what has to match. please post the output of ./config.nice | grep chroot ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=65226 -- Edit this bug report at https://bugs.php.net/bug.php?id=65226&edit=1