On Tue Nov 21, 2017 at 08:59:51AM +0100, Landry Breuil wrote:
> On Mon, Nov 20, 2017 at 10:46:35PM +0100, Rafael Sadowski wrote:
> > Hi All!
> >
> > Today I installed dokwiki on OpenBSD 6.2 and ran into different php
> > issues. I uninstalled the default php 5.6 version and replaces it with
> > php 7.x. Now everything works as usual.
> >
> > Please find below a simple -current diff. After an okay I would like to
> > commit the same diff into -stable.
> >
> > Ok? Comments?
>
> Well, sorry but no. Upstream clearly states on
> https://www.dokuwiki.org/requirements that 5.6 is the minimal version
> ("but newer versions are highly recommended"), so that should work - but
> since you didnt say what "different php issues" were we cant really
> tell..
>
> Landry
>
use-case: create a dokwiki account
PHP message: PHP Fatal error: Uncaught exception 'Exception' with message
'There is no suitable CSPRNG installed on your system' in
/dokuwiki/vendor/paragonie/random_compat/lib/random.php:203
Stack trace:
#0 /dokuwiki/vendor/paragonie/random_compat/lib/random_int.php(153):
random_bytes(1)
#1 /dokuwiki/inc/PassHash.class.php(630): random_int(0, 61)
#2 /dokuwiki/inc/PassHash.class.php(110): PassHash->random(0, 61)
#3 /dokuwiki/inc/PassHash.class.php(127): PassHash->gen_salt(8)
#4 /dokuwiki/inc/PassHash.class.php(153): PassHash->init_salt(NULL, 8)
#5 /dokuwiki/install.php(390): PassHash->hash_smd5('Anibas')
#6 /dokuwiki/install.php(142): store_data(Array)
#7 {main}
thrown in /dokuwiki/vendor/paragonie/random_compat/lib/random.php on line 203
"Note: Although this function was added to PHP in PHP 7.0, a » userland
implementation is available for PHP 5.2 to 5.6, inclusive."
-- http://php.net/manual/en/function.random-bytes.php