[dokuwiki] New PR: Fix is writable for NOBODY in PHP 5.5+

  • From: "yurii-github" <wiki@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Mon, 2 Nov 2015 22:23:31 +0100 (CET)

Hi,

yurii-github opened a new pull request at
https://github.com/splitbrain/dokuwiki/pull/1391:

http://php.net/manual/en/function.is-writable.php

it fixes write access checks for NOBODY by replacing bugged php function
is_writable() with lower lvl one as is_writable() does not check group
membership of PHP 5.5+ (since 5.5.16 or something)
w/o it doku will keep saying "The datadir ('pages') at ./data/pages is not
found, isn't accessible or writable ....." as it sees zero permissions though
they were granted.

p.s.
this how i fixed it for myself, it doesnt looks good, but it works. maybe write
checks should be removed in advance of write error catch during writing


regards

Please help us to review this pull request, so new contributors get feedback in
a timely manner.

f71c0b80-81a7-11e5-8453-760ed49343e4


--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts:

  • » [dokuwiki] New PR: Fix is writable for NOBODY in PHP 5.5+ - yurii-github