Skip to content

Commit 11f30d6

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: fix setcookie Max-Age to use php_time
2 parents 5f9ee16 + a5db319 commit 11f30d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/head.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ PHPAPI int php_setcookie(zend_string *name, zend_string *value, time_t expires,
149149
smart_str_append(&buf, dt);
150150
zend_string_free(dt);
151151

152-
diff = difftime(expires, time(NULL));
152+
diff = difftime(expires, php_time());
153153
if (diff < 0) {
154154
diff = 0;
155155
}

0 commit comments

Comments
 (0)