From: Xinchen Hui Date: Tue, 26 Aug 2014 04:14:45 +0000 (+0800) Subject: Fixed incompatible pointer X-Git-Tag: PRE_PHP7_REMOVALS~315 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc6cd48efbd15ed3f2bdeae36b8dc3d125b838c4;p=php Fixed incompatible pointer --- diff --git a/ext/session/session.c b/ext/session/session.c index af1d50c255..c765a660df 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -850,7 +850,7 @@ PS_SERIALIZER_DECODE_FUNC(php_serialize) /* {{{ */ ZVAL_NULL(&session_vars); PHP_VAR_UNSERIALIZE_INIT(var_hash); - php_var_unserialize(&session_vars, &val, endptr, &var_hash TSRMLS_CC); + php_var_unserialize(&session_vars, (const unsigned char **)&val, endptr, &var_hash TSRMLS_CC); PHP_VAR_UNSERIALIZE_DESTROY(var_hash); if (!Z_ISUNDEF(PS(http_session_vars))) { zval_ptr_dtor(&PS(http_session_vars));