mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-02 20:32:26 +02:00
41 lines
1.5 KiB
Diff
41 lines
1.5 KiB
Diff
Patch-Source: https://github.com/php/php-src/commit/36d46a473217929b38b8a7be805f2cb17a68dd85
|
|
From 36d46a473217929b38b8a7be805f2cb17a68dd85 Mon Sep 17 00:00:00 2001
|
|
From: "Christoph M. Becker" <cmbecker69@gmx.de>
|
|
Date: Wed, 5 Feb 2025 15:58:25 +0100
|
|
Subject: [PATCH] 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] <https://github.com/curl/curl/pull/15937>
|
|
|
|
Closes GH-17709.
|
|
---
|
|
ext/curl/tests/curl_basic_022.phpt | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/ext/curl/tests/curl_basic_022.phpt b/ext/curl/tests/curl_basic_022.phpt
|
|
index e905dfd885d16..4a2177e06bd47 100644
|
|
--- a/ext/curl/tests/curl_basic_022.phpt
|
|
+++ b/ext/curl/tests/curl_basic_022.phpt
|
|
@@ -11,10 +11,10 @@ curl_setopt($ch, CURLOPT_COOKIELIST, 'Set-Cookie: C2=v2; expires=Thu, 31-Dec-203
|
|
var_dump(curl_getinfo($ch, CURLINFO_COOKIELIST));
|
|
|
|
?>
|
|
---EXPECT--
|
|
+--EXPECTF--
|
|
array(2) {
|
|
[0]=>
|
|
- string(38) ".php.net TRUE / FALSE 2145916799 C1 v1"
|
|
+ string(38) ".php.net TRUE / FALSE %d C1 v1"
|
|
[1]=>
|
|
- string(38) ".php.net TRUE / FALSE 2145916799 C2 v2"
|
|
+ string(38) ".php.net TRUE / FALSE %d C2 v2"
|
|
}
|