git: 7c462175bd95 - main - www/pecl-yar: Update to 2.3.3

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 06 Jul 2024 16:18:24 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7c462175bd95abf82ecaafbff3e0a04c52be338b

commit 7c462175bd95abf82ecaafbff3e0a04c52be338b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-07-06 16:02:59 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-07-06 16:02:59 +0000

    www/pecl-yar: Update to 2.3.3
    
    Changes:        https://pecl.php.net/package-changelog.php?package=yar
---
 www/pecl-yar/Makefile          |  2 +-
 www/pecl-yar/distinfo          |  6 +++---
 www/pecl-yar/files/patch-php82 | 47 ------------------------------------------
 3 files changed, 4 insertions(+), 51 deletions(-)

diff --git a/www/pecl-yar/Makefile b/www/pecl-yar/Makefile
index c7462d0d80dd..fffb326988e3 100644
--- a/www/pecl-yar/Makefile
+++ b/www/pecl-yar/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	yar
-PORTVERSION=	2.3.2
+PORTVERSION=	2.3.3
 CATEGORIES=	www
 
 MAINTAINER=	sunpoet@FreeBSD.org
diff --git a/www/pecl-yar/distinfo b/www/pecl-yar/distinfo
index 059c5277df4c..b2555f632ac3 100644
--- a/www/pecl-yar/distinfo
+++ b/www/pecl-yar/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1653151074
-SHA256 (PECL/yar-2.3.2.tgz) = 44d7914dcfc16fddb880cac39ba94e8a17b8a29c8567c6a3bdcaee5c78c4a4bd
-SIZE (PECL/yar-2.3.2.tgz) = 51288
+TIMESTAMP = 1720022758
+SHA256 (PECL/yar-2.3.3.tgz) = e5951c7ac813dbd7dcb5738aa33b74ccdeba8a302a0649cd48affa263017b93a
+SIZE (PECL/yar-2.3.3.tgz) = 51333
diff --git a/www/pecl-yar/files/patch-php82 b/www/pecl-yar/files/patch-php82
deleted file mode 100644
index 636894041167..000000000000
--- a/www/pecl-yar/files/patch-php82
+++ /dev/null
@@ -1,47 +0,0 @@
-Obtained from:	https://github.com/laruence/yar/pull/177
-
---- tests/yar.inc.orig	2022-05-18 05:52:56 UTC
-+++ tests/yar.inc
-@@ -105,17 +105,19 @@ PHP;
- 
- function yar_server_cleanup() {
- 	$dir = dirname(__FILE__) . DIRECTORY_SEPARATOR . "htdocs";
--	$dp = opendir($dir);
--	while (($f = readdir($dp))) {
--		if (in_array($f, array('.', '..'))) {
--			continue;
-+	if (is_dir($dir)) {
-+		$dp = opendir($dir);
-+		while (($f = readdir($dp))) {
-+			if (in_array($f, array('.', '..'))) {
-+				continue;
-+			}
-+			$path = $dir . DIRECTORY_SEPARATOR . $f;
-+			if (is_file($path)) {
-+				unlink($path);
-+			}
- 		}
--		$path = $dir . DIRECTORY_SEPARATOR . $f;
--		if (is_file($path)) {
--			unlink($path);
--		}
-+		rmdir($dir);
- 	}
--	rmdir($dir);
- }
- 
- /* For TCP */
---- yar_request.c.orig	2022-05-18 05:52:56 UTC
-+++ yar_request.c
-@@ -34,7 +34,11 @@
- yar_request_t *php_yar_request_instance(zend_string *method, zend_array *parameters, void **options) /* {{{ */ {
- 	yar_request_t *request = emalloc(sizeof(yar_request_t));
- 
-+#if PHP_VERSION_ID < 80200
- 	if (!BG(mt_rand_is_seeded)) {
-+#else
-+	if (!RANDOM_G(mt19937_seeded)) {
-+#endif
- 		php_mt_srand(GENERATE_SEED());
- 	}
-