From: Xinchen Hui Date: Fri, 17 Aug 2018 08:19:26 +0000 (+0800) Subject: Fixed same bug #76755 in setrawcookie X-Git-Tag: php-7.3.0beta3~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c1a2d8375c7edcb4716d2de6c51cd3b59f0ae7b;p=php Fixed same bug #76755 in setrawcookie --- diff --git a/ext/standard/head.c b/ext/standard/head.c index 07b9a93cf2..7c813c4783 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -327,7 +327,7 @@ PHP_FUNCTION(setrawcookie) } php_head_parse_cookie_options_array(expires_or_options, &expires, &path, &domain, &secure, &httponly, &samesite); } else { - expires = Z_LVAL_P(expires_or_options); + expires = zval_get_long(expires_or_options); } }