]> granicus.if.org Git - php/commitdiff
Fixed incompatible pointer
authorXinchen Hui <laruence@php.net>
Tue, 26 Aug 2014 04:14:45 +0000 (12:14 +0800)
committerXinchen Hui <laruence@php.net>
Tue, 26 Aug 2014 04:19:06 +0000 (12:19 +0800)
ext/session/session.c

index af1d50c255e47df4992f8aad4418b531fa46fe0c..c765a660dff59d01657823f50acfaeb3650cae49 100644 (file)
@@ -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));