zEitEr
Super Moderator
Hello,
The recent PHP 7.0.4 as well as PHP 7.0.3 with Roundcube 1.1.4 gives us an error:
it is:
in /var/www/html/roundcubemail-1.1.4/program/lib/Roundcube/rcube_session.php
if to comment line
Roundcube starts to work as usual. And it works fine with PHP 5.6. Changing session path from /var/www/tmp to /tmp does not change the situation.
Anybody else has the error? Or know how to fix it securely?
p.s. The code
works fine without errors if to put it under /var/www/html/roundcubemail/ into /var/www/html/roundcubemail/test.php
The recent PHP 7.0.4 as well as PHP 7.0.3 with Roundcube 1.1.4 gives us an error:
Code:
catchable fatal error: session_regenerate_id(): Failed to create(read) session ID: user (path: /var/www/tmp) in /var/www/html/roundcubemail-1.1.4/program/lib/Roundcube/rcube_session.php on line 436
it is:
PHP:
/**
* Generate and set new session id
*
* @param boolean $destroy If enabled the current session will be destroyed
*/
public function regenerate_id($destroy=true)
{
session_regenerate_id($destroy);
$this->vars = null;
$this->key = session_id();
return true;
}
in /var/www/html/roundcubemail-1.1.4/program/lib/Roundcube/rcube_session.php
if to comment line
PHP:
// session_regenerate_id($destroy);
Roundcube starts to work as usual. And it works fine with PHP 5.6. Changing session path from /var/www/tmp to /tmp does not change the situation.
Anybody else has the error? Or know how to fix it securely?
p.s. The code
PHP:
<?php
session_start();
session_regenerate_id();
echo session_id()."<br>";
works fine without errors if to put it under /var/www/html/roundcubemail/ into /var/www/html/roundcubemail/test.php