summaryrefslogtreecommitdiffstats
path: root/11.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-03-03 07:54:42 +0100
committerRemi Collet <remi@php.net>2025-03-03 07:54:42 +0100
commitb1182180e855bce69aa9b6588c394e51158bfb9e (patch)
tree4eb84a5c291a1e34a0147177eeb6016e44b8370d /11.patch
parent90d107c2bf90fa80195588c137ae587a546a449f (diff)
update to 1.2.3HEADmaster
re-license spec file to CECILL-2.1 no support for PHP 7.x, reported as https://github.com/php/pecl-authentication-krb5/issues/10 fix PHP 7 compatibility using patch from https://github.com/php/pecl-authentication-krb5/pull/11 update to 1.2.3 re-license spec file to CECILL-2.1 no support for PHP 7.x, reported as https://github.com/php/pecl-authentication-krb5/issues/10 fix PHP 7 compatibility using patch from https://github.com/php/pecl-authentication-krb5/pull/11
Diffstat (limited to '11.patch')
-rw-r--r--11.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/11.patch b/11.patch
new file mode 100644
index 0000000..7895453
--- /dev/null
+++ b/11.patch
@@ -0,0 +1,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
+ }
+
+