diff options
| -rw-r--r-- | ext/session/php_session.h | 2 | ||||
| -rw-r--r-- | ext/session/session.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/ext/session/php_session.h b/ext/session/php_session.h index 480d5b23f9..7441547828 100644 --- a/ext/session/php_session.h +++ b/ext/session/php_session.h @@ -94,7 +94,7 @@ PHP_FUNCTION(session_id); PHP_FUNCTION(session_decode); PHP_FUNCTION(session_register); PHP_FUNCTION(session_unregister); -PHP_FUNCTION(session_encoded); +PHP_FUNCTION(session_encode); PHP_FUNCTION(session_start); PS_FUNCS(files); diff --git a/ext/session/session.c b/ext/session/session.c index aaa06664fb..637fdf89ff 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -34,6 +34,7 @@ * - improve files handler for better scaling * - add complete support for objects (partially implemented) * - complete ZTS support (currently only useable as non-ZTS) + * - userland callback functions for ps_module */ #include <sys/time.h> @@ -63,7 +64,7 @@ function_entry session_functions[] = { PHP_FE(session_decode, NULL) PHP_FE(session_register, NULL) PHP_FE(session_unregister, NULL) - PHP_FE(session_encoded, NULL) + PHP_FE(session_encode, NULL) PHP_FE(session_start, NULL) {0} }; @@ -453,9 +454,9 @@ PHP_FUNCTION(session_unregister) } /* }}} */ -/* {{{ proto string session_encoded() +/* {{{ proto string session_encode() serializes the current setup and returns the serialized representation */ -PHP_FUNCTION(session_encoded) +PHP_FUNCTION(session_encode) { int len; char *enc; |
