FS#141 - Install fails when sessions path is writable but outside open_basedir
Opened by Strict Standards: array_map() expects parameter 1 to be a valid callback, non-static method Filters::noXSS() should not be called statically in /data/web/a5/4e/8e/bugs.anwiki.com/htdocs/includes/class.tpl.php on line 281 anw (anw) - Strict Standards: Non-static method Filters::noXSS() should not be called statically in /data/web/a5/4e/8e/bugs.anwiki.com/htdocs/includes/class.tpl.php on line 613 Sunday, 31 October 2010, 11:28 GMT
Last edited by anw (anw) - Strict Standards: Non-static method Filters::noXSS() should not be called statically in /data/web/a5/4e/8e/bugs.anwiki.com/htdocs/includes/class.tpl.php on line 613 Friday, 10 February 2012, 01:01 GMT
|
DetailsBefore installing Anwiki, the system makes sure that sessions path is writable.
Unfortunately, when a server uses "open_basedir" restriction and when sessions path is outside, Anwiki will call is_writable() on the session_path which will throw a warning "open_basedir restriction in effect" and will return false, even when the sessions path is writable in fact and works correctly. I suggest to not perform the is_writable() test when open_basedir is set. So we won't be able to detect that sessions path is not writable in such case, but we also won't block Anwiki installation on "false positives" setups. |
tcp://127.0.0.1:11211?persistent=1&weight=1&timeout=1&retry_interval=15
It is my configuration.
Samson