Skip to content

Commit 36d46a4

Browse files
committed
Fix curl_basic_022.phpt for libcurl 8.12.0
Due to a deliberate change in libcurl, the expiration is now capped to at most 400 days. We could solve this by choosing another date roughly a year in the future, but would need to update the test next year. This would be especially annoying for security branches. Another option would be to actually parse the cookie list lines, but that might not be worth the trouble. Instead we just ignore the exact timestamp created by libcurl. [1] <curl/curl#15937> Closes GH-17709.
1 parent d8aedb5 commit 36d46a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/curl/tests/curl_basic_022.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ curl_setopt($ch, CURLOPT_COOKIELIST, 'Set-Cookie: C2=v2; expires=Thu, 31-Dec-203
1111
var_dump(curl_getinfo($ch, CURLINFO_COOKIELIST));
1212

1313
?>
14-
--EXPECT--
14+
--EXPECTF--
1515
array(2) {
1616
[0]=>
17-
string(38) ".php.net TRUE / FALSE 2145916799 C1 v1"
17+
string(38) ".php.net TRUE / FALSE %d C1 v1"
1818
[1]=>
19-
string(38) ".php.net TRUE / FALSE 2145916799 C2 v2"
19+
string(38) ".php.net TRUE / FALSE %d C2 v2"
2020
}

0 commit comments

Comments
 (0)