blob: 78954531035865576eac501b88a2b9b82493f814 (
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 4e7cffdb4dbc080d12c5ba3d8fcb40e79f324a74 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Mon, 3 Mar 2025 07:36:39 +0100
Subject: [PATCH] fix PHP 7 compatibility
---
negotiate_auth.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/negotiate_auth.c b/negotiate_auth.c
index 4f20770..ce88e26 100644
--- a/negotiate_auth.c
+++ b/negotiate_auth.c
@@ -240,7 +240,12 @@ PHP_METHOD(KRB5NegotiateAuth, __construct)
#endif
if (zchannel != NULL) {
+#if PHP_VERSION_ID < 80000
+ Z_ADDREF_P(zchannel);
+ ZVAL_OBJ(&object->chan_bindings, Z_OBJ_P(zchannel));
+#else
ZVAL_OBJ_COPY(&object->chan_bindings, Z_OBJ_P(zchannel));
+#endif
}
|