summaryrefslogtreecommitdiffstats
path: root/14.patch
blob: e59f81da5561986b9d3a73baf8af1b24187e7ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 96477c166d10062f43c4a500d8c94b09b0c3db3a Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Thu, 16 Aug 2018 13:03:35 +0200
Subject: [PATCH] fix for 7.3.0beta

---
 serverresponse.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/serverresponse.c b/serverresponse.c
index e2b3f04..734ff5b 100644
--- a/serverresponse.c
+++ b/serverresponse.c
@@ -1031,7 +1031,11 @@ static inline void send_cookie(zend_string *name, zval *arr)
         raw = zval_is_true(tmp);
     }
 
+#if PHP_VERSION_ID < 70300
     php_setcookie(name, value, expires, path, domain, secure, !raw, httponly);
+#else
+    php_setcookie(name, value, expires, path, domain, secure, httponly, NULL, !raw);
+#endif
 }
 
 PHP_METHOD(ServerResponse, sendCookies)