session_start() after upgrade to php-apache-7.1.2-1-armv7h

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

session_start() after upgrade to php-apache-7.1.2-1-armv7h

Postby whatshisname » Wed Feb 15, 2017 6:28 pm

Upgraded to php-apache-7.1.2-1-armv7h.pkg.tar.xz yesterday and am now getting the following error when trying to use the session_start() function on the login page to my site:
$this->bbcode_second_pass_code('', '
PHP Fatal error: Uncaught Exception: Could not gather sufficient random data in /dologin.php
')
So PHP can't create a Session ID and the script fails.
$this->bbcode_second_pass_code('', '
Next Error: Failed to create session ID: files (path: ) in /dologin.php
')
I checked '/dev/urandom' and it's read and writeable by the world:
$this->bbcode_second_pass_code('', '
crw-rw-rw- 1 root root 1, 9 Feb 15 12:04 /dev/urandom
')
I tried to explicitly point to the entropy file:
$this->bbcode_second_pass_code('', '
session_start([
'entropy_file' => '/dev/urandom'
]);
')
I appear to have sufficient disk space in /dev
$this->bbcode_second_pass_code('', '
Filesystem Size Used Avail Use% Mounted on
devtmpfs 376M 0 376M 0% /dev
tmpfs 402M 0 402M 0% /dev/shm
')
I rolled back to 'php-apache-7.1.1-1-armv7h.pkg.tar.xz' and all is well now.

Suggestions?
whatshisname
 
Posts: 19
Joined: Sat Sep 29, 2012 5:45 pm

Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 11 guests