git: 8f9afcc6cb9a - main - lang/php82: Update version 8.2.21=>8.2.22

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 01 Aug 2024 19:37:30 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8f9afcc6cb9aee411b5d956658c66262831a1c3e

commit 8f9afcc6cb9aee411b5d956658c66262831a1c3e
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-08-01 18:45:01 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-08-01 19:21:38 +0000

    lang/php82: Update version 8.2.21=>8.2.22
    
    Changelog: https://www.php.net/archive/2024.php#2024-08-01-2
---
 lang/php82/Makefile                            |  2 +-
 lang/php82/distinfo                            |  6 +++---
 lang/php82/files/patch-ext_standard_filestat.c | 26 --------------------------
 lang/php82/files/patch-main_fopen__wrappers.c  | 14 --------------
 lang/php82/files/patch-main_main.c             | 14 --------------
 5 files changed, 4 insertions(+), 58 deletions(-)

diff --git a/lang/php82/Makefile b/lang/php82/Makefile
index 5cefc72774e5..be39c4b795e0 100644
--- a/lang/php82/Makefile
+++ b/lang/php82/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	php82
-DISTVERSION=	8.2.21
+DISTVERSION=	8.2.22
 PORTREVISION?=	0
 CATEGORIES?=	lang devel www
 MASTER_SITES=	PHP/distributions
diff --git a/lang/php82/distinfo b/lang/php82/distinfo
index f8b6f532853c..b8eb895400e2 100644
--- a/lang/php82/distinfo
+++ b/lang/php82/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1722079018
-SHA256 (php-8.2.21.tar.xz) = 8cc44d51bb2506399ec176f70fe110f0c9e1f7d852a5303a2cd1403402199707
-SIZE (php-8.2.21.tar.xz) = 12106792
+TIMESTAMP = 1722535810
+SHA256 (php-8.2.22.tar.xz) = 8566229bc88ad1f4aadc10700ab5fbcec81587c748999d985f11cf3b745462df
+SIZE (php-8.2.22.tar.xz) = 12099476
diff --git a/lang/php82/files/patch-ext_standard_filestat.c b/lang/php82/files/patch-ext_standard_filestat.c
deleted file mode 100644
index 776093def4e6..000000000000
--- a/lang/php82/files/patch-ext_standard_filestat.c
+++ /dev/null
@@ -1,26 +0,0 @@
---- ext/standard/filestat.c.orig	2024-01-17 22:33:41 UTC
-+++ ext/standard/filestat.c
-@@ -315,7 +315,11 @@ PHPAPI int php_get_gid_by_name(const char *name, gid_t
- 		char *grbuf;
- 
- 		if (grbuflen < 1) {
-+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE)
-+			grbuflen = sysconf(_SC_PAGESIZE);
-+#else
- 			return FAILURE;
-+#endif
- 		}
- 
- 		grbuf = emalloc(grbuflen);
-@@ -441,7 +445,11 @@ PHPAPI uid_t php_get_uid_by_name(const char *name, uid
- 		char *pwbuf;
- 
- 		if (pwbuflen < 1) {
-+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE)
-+			pwbuflen = sysconf(_SC_PAGESIZE);
-+#else
- 			return FAILURE;
-+#endif
- 		}
- 
- 		pwbuf = emalloc(pwbuflen);
diff --git a/lang/php82/files/patch-main_fopen__wrappers.c b/lang/php82/files/patch-main_fopen__wrappers.c
deleted file mode 100644
index 05063cbab4b4..000000000000
--- a/lang/php82/files/patch-main_fopen__wrappers.c
+++ /dev/null
@@ -1,14 +0,0 @@
---- main/fopen_wrappers.c.orig	2024-01-16 12:19:32 UTC
-+++ main/fopen_wrappers.c
-@@ -369,7 +369,11 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *
- 			char *pwbuf;
- 
- 			if (pwbuflen < 1) {
-+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE)
-+				pwbuflen = sysconf(_SC_PAGESIZE);
-+#else
- 				return FAILURE;
-+#endif
- 			}
- 
- 			pwbuf = emalloc(pwbuflen);
diff --git a/lang/php82/files/patch-main_main.c b/lang/php82/files/patch-main_main.c
deleted file mode 100644
index ce0c20318317..000000000000
--- a/lang/php82/files/patch-main_main.c
+++ /dev/null
@@ -1,14 +0,0 @@
---- main/main.c.orig	2024-01-17 22:30:20 UTC
-+++ main/main.c
-@@ -1448,7 +1448,11 @@ PHPAPI char *php_get_current_user(void)
- 		char *pwbuf;
- 
- 		if (pwbuflen < 1) {
-+#if defined(__FreeBSD__) && defined(_SC_PAGESIZE)
-+		pwbuflen = sysconf(_SC_PAGESIZE);
-+#else
- 			return "";
-+#endif
- 		}
- 		pwbuf = emalloc(pwbuflen);
- 		if (getpwuid_r(pstat->st_uid, &_pw, pwbuf, pwbuflen, &retpwptr) != 0) {