diff options
author | Arpad Ray <arraypad@gmail.com> | 2013-06-27 11:27:49 +0100 |
---|---|---|
committer | Arpad Ray <arraypad@gmail.com> | 2013-06-27 12:29:44 +0100 |
commit | b66c14b0c82ad0ed4ea117f7b789eef6e3a95ef4 (patch) | |
tree | 3717bcbf6d8632c480bd1f059ee235db1b55090d /ext/session/php_session.h | |
parent | 60bbc78bde18d2d21cd4c0eaf86d348368c8aca9 (diff) | |
parent | 6809c388b5d8bb03515f7b4ba391724f9a8df8e0 (diff) | |
download | php-git-b66c14b0c82ad0ed4ea117f7b789eef6e3a95ef4.tar.gz |
Merge PR 109 - Add create_sid to session_set_save_handler and SessionHandler
Allows user session handlers to create session IDs by adding an optional
7th argument to session_set_save_handler() and a create_sid() method
to SessionHandler.
Diffstat (limited to 'ext/session/php_session.h')
-rw-r--r-- | ext/session/php_session.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/session/php_session.h b/ext/session/php_session.h index adc5e70402..210043582d 100644 --- a/ext/session/php_session.h +++ b/ext/session/php_session.h @@ -138,7 +138,7 @@ typedef struct _php_ps_globals { int module_number; long cache_expire; union { - zval *names[6]; + zval *names[7]; struct { zval *ps_open; zval *ps_close; @@ -146,6 +146,7 @@ typedef struct _php_ps_globals { zval *ps_write; zval *ps_destroy; zval *ps_gc; + zval *ps_create_sid; } name; } mod_user_names; int mod_user_implemented; @@ -283,5 +284,6 @@ extern PHP_METHOD(SessionHandler, read); extern PHP_METHOD(SessionHandler, write); extern PHP_METHOD(SessionHandler, destroy); extern PHP_METHOD(SessionHandler, gc); +extern PHP_METHOD(SessionHandler, create_sid); #endif |