summaryrefslogtreecommitdiff
path: root/ext/session
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-09-14 23:57:53 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-09-14 23:57:53 +0000
commit6784176b9c30c3d3705745464e63bccde5348be9 (patch)
tree0dcb794a8cd1d082fd52bdd5e1c4c7efbd00c1a9 /ext/session
parentffc2278d6e6ac6d6f2c69b604cf746942c9e010e (diff)
downloadphp-git-6784176b9c30c3d3705745464e63bccde5348be9.tar.gz
Fixed compiler warnings.
Diffstat (limited to 'ext/session')
-rw-r--r--ext/session/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/session/session.c b/ext/session/session.c
index d263ac6d6e..3afcf0fa40 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -424,7 +424,7 @@ PS_SERIALIZER_DECODE_FUNC(php_binary)
if (has_value) {
MAKE_STD_ZVAL(current);
- if (php_var_unserialize(&current, &p, endptr, &var_hash TSRMLS_CC)) {
+ if (php_var_unserialize(&current, (const unsigned char **) &p, endptr, &var_hash TSRMLS_CC)) {
php_set_session_var(name, namelen, current, &var_hash TSRMLS_CC);
}
zval_ptr_dtor(&current);
@@ -504,7 +504,7 @@ PS_SERIALIZER_DECODE_FUNC(php)
if (has_value) {
ALLOC_INIT_ZVAL(current);
- if (php_var_unserialize(&current, &q, endptr, &var_hash TSRMLS_CC)) {
+ if (php_var_unserialize(&current, (const unsigned char **) &q, endptr, &var_hash TSRMLS_CC)) {
php_set_session_var(name, namelen, current, &var_hash TSRMLS_CC);
}
zval_ptr_dtor(&current);