Summary: | php-4.4.4-r6 incorrect behaviour in open_basedir() | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | lou <whitehatcheck> |
Component: | [OLD] Unspecified | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED CANTFIX | ||
Severity: | major | CC: | boss.gentoo |
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
lou
2006-10-24 17:23:35 UTC
Hi. This was already reported to us but we couldn't reproduce it ourselves and the guy that reported it said he couldn't test what I think could be the possible fix... I hope you can test it, so we can know if this works or not... Basically, there is a dev-lang/php-4.4.4-r8 ebuild in our PHP Overlay which contains an updated patch by the PHP devs, _maybe_ it fixes the issue, I can't be sure because no one that has it reported if it works then, so I hope you can do that. :P To emerge that PHP version, just do the following: emerge layman && layman -f && layman -a php-testing this will add the PHP Overlay to your system in an easy way using the Layman software (overlays manager), then just update your dev-lang/php-4*, it should want to update to 4.4.4-r8, try it and tell us if it works then, thanks! Best regards, CHTEKK. Hello I saw that php-4.4.4-r8 is in portage, so I just emerged that. The same thing happens with r8 as with r6, r4 behaves correctly. The fix comes from PHP upstream and is officially included in PHP 5.2.0, it seems the new behaviour to fix an open_basedir issue is to now always check paths against open_basedir, so also your upload tmpdir needs to be included in your open_basedir setting now from PHP 5.2.0 onwards. The fix was backported to 5.1.6 and 4.4.4 here in Gentoo, so the same thing is valid for the latest releases of thoes two PHP versions on Gentoo. Please adapt your configurations to add the correct paths to open_basedir. Best regards, CHTEKK. |