Skip to content

Commit dc6cd48

Browse files
committed
Fixed incompatible pointer
1 parent 80dd764 commit dc6cd48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/session/session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ PS_SERIALIZER_DECODE_FUNC(php_serialize) /* {{{ */
850850

851851
ZVAL_NULL(&session_vars);
852852
PHP_VAR_UNSERIALIZE_INIT(var_hash);
853-
php_var_unserialize(&session_vars, &val, endptr, &var_hash TSRMLS_CC);
853+
php_var_unserialize(&session_vars, (const unsigned char **)&val, endptr, &var_hash TSRMLS_CC);
854854
PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
855855
if (!Z_ISUNDEF(PS(http_session_vars))) {
856856
zval_ptr_dtor(&PS(http_session_vars));

0 commit comments

Comments
 (0)