Skip to content

[PHP8.6] Deprecation SessionHandlerInterface #69

Description

@heelc29

Steps to reproduce the issue

A deprecation is now emitted when implementing SessionHandlerInterface on a class which doesn't define the create_sid() or validateId() methods, as those will be moved from SessionUpdateTimestampHandlerInterface and SessionIdInterface to SessionHandlerInterface.

RFC: Deprecate passing a $sessionhandler object to session_set_save_handler() which does not contain the create_sid() and validateId() methods

PHP Warning:  Class Joomla\Session\Handler\ApcuHandler implementing SessionHandlerInterface is missing the create_sid() method which will be required in PHP 9.0 in joomla\session\src\Handler\ApcuHandler.php on line 19
PHP Warning:  Class Joomla\Session\Handler\ApcuHandler implementing SessionHandlerInterface is missing the validateId() method which will be required in PHP 9.0 in joomla\session\src\Handler\ApcuHandler.php on line 19
PHP Warning:  Class Joomla\Session\Handler\DatabaseHandler implementing SessionHandlerInterface is missing the create_sid() method which will be required in PHP 9.0 in joomla\session\src\Handler\DatabaseHandler.php on line 25
PHP Warning:  Class Joomla\Session\Handler\DatabaseHandler implementing SessionHandlerInterface is missing the validateId() method which will be required in PHP 9.0 in joomla\session\src\Handler\DatabaseHandler.php on line 25
PHP Warning:  Class Joomla\Session\Handler\MemcachedHandler implementing SessionHandlerInterface is missing the create_sid() method which will be required in PHP 9.0 in joomla\session\src\Handler\MemcachedHandler.php on line 19
PHP Warning:  Class Joomla\Session\Handler\MemcachedHandler implementing SessionHandlerInterface is missing the validateId() method which will be required in PHP 9.0 in joomla\session\src\Handler\MemcachedHandler.php on line 19
PHP Warning:  Class Joomla\Session\Handler\RedisHandler implementing SessionHandlerInterface is missing the create_sid() method which will be required in PHP 9.0 in joomla\session\src\Handler\RedisHandler.php on line 19
PHP Warning:  Class Joomla\Session\Handler\RedisHandler implementing SessionHandlerInterface is missing the validateId() method which will be required in PHP 9.0 in joomla\session\src\Handler\RedisHandler.php on line 19
PHP Deprecated:  session_set_save_handler(): Providing an object to argument #1 ($sessionhandler) which does not have the create_sid() method defined is deprecated in joomla\session\src\Storage\NativeStorage.php on line 349

System information (as much as possible)

PHP8.6beta2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions