]> granicus.if.org Git - php/commitdiff
Fixed same bug #76755 in setrawcookie
authorXinchen Hui <laruence@gmail.com>
Fri, 17 Aug 2018 08:19:26 +0000 (16:19 +0800)
committerXinchen Hui <laruence@gmail.com>
Fri, 17 Aug 2018 08:19:26 +0000 (16:19 +0800)
ext/standard/head.c

index 07b9a93cf2ae8439774cac7863a79af6025ad21a..7c813c47833dc35e5b8503c1defe799df94397c0 100644 (file)
@@ -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);
                }
        }