- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16, 7.0.0 - 7.0.1
- Parse error: syntax error, unexpected 'as' (T_AS), expecting variable (T_VARIABLE) in /in/vZm6A on line 40
Process exited with code 255.
<?php
class MySessionStorage implements SessionHandlerInterface
{
private $path;
function open($savePath, $sessionName)
{
$this->path = $savePath;
}
function close()
{
}
function read($id)
{
return '';
}
function write($id, $data)
{
return TRUE;
}
function destroy($id)
{
return TRUE;
}
function gc($maxlifetime)
{
return TRUE;
}
}
if (session_set_save_handler(new MySessionStorage)){
try{ session_start();
} catch (Exception as $e){
}
}