diff options
author | Arpad Ray <arraypad@gmail.com> | 2013-06-27 12:33:56 +0100 |
---|---|---|
committer | Arpad Ray <arraypad@gmail.com> | 2013-06-27 12:33:56 +0100 |
commit | 1e836cdd64dc715e855286b22f02316a4ecf5be7 (patch) | |
tree | 9fc090a282f70f6f6301ce12cbae1ff7391c680b /ext/session/php_session.h | |
parent | b66c14b0c82ad0ed4ea117f7b789eef6e3a95ef4 (diff) | |
download | php-git-1e836cdd64dc715e855286b22f02316a4ecf5be7.tar.gz |
BC fix for PR 109 merge - create_sid() method in SessionHandler
Creates a new SessionIdInterface and moves create_sid() into it, so existing
handlers implementing SessionHandlerInterface don't require create_sid().
SessionHandler still includes the method so the default mod can be called, but
now implements both interfaces.
Also added several more tests for this feature.
Diffstat (limited to 'ext/session/php_session.h')
-rw-r--r-- | ext/session/php_session.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/session/php_session.h b/ext/session/php_session.h index 210043582d..1dd5b1a1a6 100644 --- a/ext/session/php_session.h +++ b/ext/session/php_session.h @@ -278,6 +278,9 @@ extern zend_class_entry *php_session_class_entry; #define PS_IFACE_NAME "SessionHandlerInterface" extern zend_class_entry *php_session_iface_entry; +#define PS_SID_IFACE_NAME "SessionIdInterface" +extern zend_class_entry *php_session_id_iface_entry; + extern PHP_METHOD(SessionHandler, open); extern PHP_METHOD(SessionHandler, close); extern PHP_METHOD(SessionHandler, read); |