Sessionhandling with hhvm

Sessionhandling with hhvm

After trying to get a few application to run on hhvm I came across the following error:

HipHop Fatal error: Stack overflow in /vagrant/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/Proxy/SessionHandlerProxy.php on line 45


After a bit of debugging it seemed that the open() method of PHP`s SessionHandler implementation in hhvm was throwing the error. After digg a bit deeper it seemed that hhvm did not pass a $savePath to the open() method of PHP`s SessionHandler class. The "fix" was pretty straight forward, use ini_set to the the session.save_path and session.save_handler options:

ini_set('session.save_path', '/tmp');
ini_set('session.save_handler', 'files');

 


Eintrag von Stephan Hochdörfer am 23.01.2014

Tags: HHVM, PHP, Session

Diese Webseite verwendet Cookies, um die Bedienfreundlichkeit zu erhöhen. Mit der Nutzung unserer Webseite wird das Einverständnis erklärt, dass wir Cookies verwenden. Weitere Informationen.