[dokuwiki] New PR: error fix with php 5.5+ for is_writable with NOBODY

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

Hi,

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

…user has write accesshttp://php.net/manual/en/function.is-writable.php

fix access 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. also wiki
has to many write checks as for me, fopen can be replaced with
file_puts_contents etc.


regards

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

077eb700-81a5-11e5-95b8-3f5f6e1dcc17


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

Other related posts:

  • » [dokuwiki] New PR: error fix with php 5.5+ for is_writable with NOBODY - yurii-github