summaryrefslogtreecommitdiffstats
path: root/0001-STR_EMPTY_ALLOC-removed-in-PHP-8.5.patch
blob: e856fb7583378ad953487dbcea702fd72aab60fe (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
26
From 1ff03c2e45440327015a7bcbf55df4833c9778db Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Fri, 26 Sep 2025 15:38:52 +0200
Subject: [PATCH] STR_EMPTY_ALLOC removed in PHP 8.5

ZSTR_EMPTY_ALLOC exists since 7.0
---
 plugins/php/session.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/php/session.c b/plugins/php/session.c
index cce06985..1e19f8be 100644
--- a/plugins/php/session.c
+++ b/plugins/php/session.c
@@ -14,7 +14,7 @@ PS_READ_FUNC(uwsgi) {
 	uint64_t valsize = 0;
 	char *value = uwsgi_cache_magic_get(key->val, key->len , &valsize, NULL, cache);
 	if (!value) {
-		*val = STR_EMPTY_ALLOC();
+		*val = ZSTR_EMPTY_ALLOC();
 		return SUCCESS;
 	}
 	*val = zend_string_init(value, valsize, 0);
-- 
2.51.0