[PECL-CVS] [pecl-authentication-krb5] master: Bump release version, add composer.json, drop pre-PHP8 support

[email protected] (Moritz Bechler) Mon, 8 Jun 2026 15:50:08 +0000
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Moritz Bechler (mbechler)
Date: 2026-06-08T17:21:36+02:00

Commit: https://github.com/php/pecl-authentication-krb5/commit/74c9ffcb8df14a5a1286d7325ca0ef161a72b042
Raw diff: https://github.com/php/pecl-authentication-krb5/commit/74c9ffcb8df14a5a1286d7325ca0ef161a72b042.diff

Bump release version, add composer.json, drop pre-PHP8 support

Changed paths:
  A  RELEASE-1.3.0
  A  composer.json
  M  negotiate_auth.c
  M  package.xml
  M  php_krb5.h
  M  php_krb5_compat.h


Diff:

diff --git a/RELEASE-1.3.0 b/RELEASE-1.3.0
new file mode 100644
index 0000000..5833949
--- /dev/null
+++ b/RELEASE-1.3.0
@@ -0,0 +1,2 @@
+- [CLEANUP] Drop pre-PHP8 support
+- [FEATURE] Add bindings for gss_export_cred/gss_import_cred
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..5f06ef1
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,23 @@
+{
+    "name": "pecl/krb5",
+    "type": "php-ext",
+    "description": "Kerberos/GSSPI and KAdmin bindings for PHP",
+    "require": {
+        "php": ">=8.0.0"
+    },
+    "php-ext": {
+        "extension-name": "krb5",
+        "configure-options": [
+            {
+                "name": "with-krb5config",
+                "description": "Specify path to krb5config",
+                "needs-value": false
+            },
+            {
+                "name": "with-krb5kadm",
+                "description": "Include support for administrative/KADM interface",
+                "needs-value": false
+            }
+        ]
+    }
+}
diff --git a/negotiate_auth.c b/negotiate_auth.c
index bb89a36..080bbe4 100644
--- a/negotiate_auth.c
+++ b/negotiate_auth.c
@@ -190,12 +190,7 @@ 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
 	}
 
 
diff --git a/package.xml b/package.xml
index b6344bc..2fc4f27 100644
--- a/package.xml
+++ b/package.xml
@@ -22,10 +22,10 @@ Documentation:
   <email>[email protected]</email>
   <active>yes</active>
  </lead>
- <date>2025-03-16</date>
+ <date>2026-06-08</date>
  <time>16:00:00</time>
  <version>
-  <release>1.2.4</release>
+  <release>1.3.0</release>
   <api>0.1.1</api>
  </version>
  <stability>
@@ -34,7 +34,8 @@ Documentation:
  </stability>
  <license uri="http://www.opensource.org/licenses/MIT">MIT License</license>
  <notes>
-- [BUG] Fix PHP7 compatability
+- [CLEANUP] Drop pre-PHP8 support
+- [FEATURE] Add bindings for gss_export_cred/gss_import_cred
  </notes>
  <contents>
   <dir name="/">
@@ -84,7 +85,7 @@ Documentation:
  <dependencies>
   <required>
    <php>
-    <min>7.0.0</min>
+    <min>8.0.0</min>
    </php>
    <pearinstaller>
     <min>1.4.8</min>
diff --git a/php_krb5.h b/php_krb5.h
index 2425ccf..891d7bd 100644
--- a/php_krb5.h
+++ b/php_krb5.h
@@ -45,7 +45,7 @@
 #include <gssapi/gssapi_krb5.h>
 
 #define PHP_KRB5_EXT_NAME "krb5"
-#define PHP_KRB5_VERSION "1.2.4"
+#define PHP_KRB5_VERSION "1.3.0"
 
 
 extern zend_module_entry krb5_module_entry;
diff --git a/php_krb5_compat.h b/php_krb5_compat.h
index d5b8867..ae85bdf 100644
--- a/php_krb5_compat.h
+++ b/php_krb5_compat.h
@@ -1,12 +1,6 @@
 #ifndef PHP_KRB5_COMPAT_H
 #define PHP_KRB5_COMPAT_H
 
-#if PHP_MAJOR_VERSION < 8
-
-#define OBJ_FOR_PROP(zv) (zv)
-
-#else
-
 #define OBJ_FOR_PROP(zv) Z_OBJ_P(zv)
 
 #define TSRMLS_D void
@@ -15,8 +9,6 @@
 #define TSRMLS_CC
 #define TSRMLS_FETCH()
 
-#endif
-
 #include "zend_operators.h"
 
 typedef size_t strsize_t;