|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-07-08 21:02 UTC] johannes@php.net
-Status: Open
+Status: Not a bug
[2012-07-08 21:02 UTC] johannes@php.net
[2012-07-09 05:29 UTC] laruence@php.net
[2012-07-09 15:10 UTC] streaky at mybrokenlogic dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 23:00:01 2025 UTC |
Description: ------------ chroot() seems to be arbitrarily disabled with ZTS enabled. It seems like it is disabled because when ZTS is -usually- used it is with a sapi that requires thread safety but this isn't always the case. AFAIK there isn't a good reason for it, I assume it's some sort of oversight - a cheap and cheerful way to achieve the above, but it doesn't account for all circumstances so you have to go hacking on the source code in about 3 different places. It probably should be as is *except* for if CLI and possibly CGI is the SAPI. Test script: --------------- <?php var_dump(chroot("/chroot/me/here/")); Expected result: ---------------- bool(true) Actual result: -------------- Fatal error: Call to undefined function chroot()