<?php
class Test implements SessionHandlerInterface
{
public function close ( ){}
public function destroy ( $session_id ){}
public function gc ( $maxlifetime ){}
public function open ( $save_path , $session_name ){}
public function read ( $session_id ){}
public function write ( $session_id , $session_data ){}
}
$test = new Test();
session_set_save_handler($test);
Deprecated: Return type of Test::open($save_path, $session_name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/iO4NX on line 8
Deprecated: Return type of Test::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/iO4NX on line 5
Deprecated: Return type of Test::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/iO4NX on line 9
Deprecated: Return type of Test::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/iO4NX on line 10
Deprecated: Return type of Test::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/iO4NX on line 6
Deprecated: Return type of Test::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/iO4NX on line 7
Warning: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent in /in/iO4NX on line 14
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Deprecated: Return type of Test::open($save_path, $session_name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/iO4NX on line 8
Deprecated: Return type of Test::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/iO4NX on line 5
Deprecated: Return type of Test::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/iO4NX on line 9
Deprecated: Return type of Test::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/iO4NX on line 10
Deprecated: Return type of Test::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/iO4NX on line 6
Deprecated: Return type of Test::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/iO4NX on line 7
Warning: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent in /in/iO4NX on line 14