Skip to content
Snippets Groups Projects
Verified Commit 7c462175 authored by sunpoet's avatar sunpoet
Browse files

www/pecl-yar: Update to 2.3.3

parent 6068934c
Branches
Tags
No related merge requests found
PORTNAME= yar
PORTVERSION= 2.3.2
PORTVERSION= 2.3.3
CATEGORIES= www
MAINTAINER= sunpoet@FreeBSD.org
......
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
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());
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment