summaryrefslogtreecommitdiff
path: root/ext/session/session.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2001-11-10 21:18:34 +0000
committerSascha Schumann <sas@php.net>2001-11-10 21:18:34 +0000
commitf341f630d3fe6fe669f6a4cbf176f7a5e6f3f4db (patch)
tree3f7fbe4a27171ecd4da8da070d083be12aac5fc5 /ext/session/session.c
parent88c6758d4e326a9714e0bfccd3309c3e5a282ef9 (diff)
downloadphp-git-f341f630d3fe6fe669f6a4cbf176f7a5e6f3f4db.tar.gz
Rewrite of unserializer which should be more maintainable and extensible.
Changes pass `make test´ and a couple of custom tests. Enjoy.
Diffstat (limited to 'ext/session/session.c')
-rw-r--r--ext/session/session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/session/session.c b/ext/session/session.c
index ff9be2052e..2a54c4c708 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -259,7 +259,7 @@ typedef struct {
#define MAX_STR 512
-void php_set_session_var(char *name, size_t namelen, zval *state_val,HashTable *var_hash TSRMLS_DC)
+void php_set_session_var(char *name, size_t namelen, zval *state_val, php_unserialize_data_t *var_hash TSRMLS_DC)
{
if (PG(register_globals)) {
@@ -344,7 +344,7 @@ PS_SERIALIZER_DECODE_FUNC(php_binary)
zval *current;
int namelen;
int has_value;
- php_serialize_data_t var_hash;
+ php_unserialize_data_t var_hash;
PHP_VAR_UNSERIALIZE_INIT(var_hash);
@@ -411,7 +411,7 @@ PS_SERIALIZER_DECODE_FUNC(php)
zval *current;
int namelen;
int has_value;
- php_serialize_data_t var_hash;
+ php_unserialize_data_t var_hash;
PHP_VAR_UNSERIALIZE_INIT(var_hash);