public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Remi Collet <remi@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/php-pecl-event] epel10: add fix for bigendian from
Date: Tue, 01 Dec 2026 09:47:37 GMT	[thread overview]
Message-ID: <179611845707.1.12179217916829430417.rpms-php-pecl-event-1fdca802341d@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/php-pecl-event
            Branch : epel10
            Commit : 1fdca802341d503b8940536af88b06f670b64c5f
            Author : Remi Collet <remi@fedoraproject.org>
            Date   : 2026-12-01T10:47:23+01:00
            Stats  : +46/-7 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/php-pecl-event/c/1fdca802341d503b8940536af88b06f670b64c5f?branch=epel10

            Log:
            add fix for bigendian from

  https://github.com/rosmanov/pecl-event/pull/15

(cherry picked from commit 4acb5022655d1db11382d3f527fb76a448ce4bc3)

---
diff --git a/15.patch b/15.patch
new file mode 100644
index 0000000..0653746
--- /dev/null
+++ b/15.patch
@@ -0,0 +1,38 @@
+From aa5f4ad6c8b1e04e3f6e4a5f74195070de55c5b8 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Tue, 1 Dec 2026 10:26:16 +0100
+Subject: [PATCH] Fix #13 failure on big endian
+
+---
+ classes/event.c | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/classes/event.c b/classes/event.c
+index caec248..45a066d 100644
+--- a/classes/event.c
++++ b/classes/event.c
+@@ -324,6 +324,7 @@ PHP_EVENT_METHOD(Event, set)
+ 	zend_fcall_info   fci = {0};
+ 	zend_fcall_info_cache fci_cache;
+ 	zval             *zarg   = NULL;
++	short             whatshort;
+ 
+ 	if (zend_parse_parameters(ZEND_NUM_ARGS(), "Oz!|lf!z!",
+ 				&zbase, php_event_base_ce, &pzfd,
+@@ -388,13 +389,14 @@ PHP_EVENT_METHOD(Event, set)
+ 		ZVAL_COPY(&e->data, zarg);
+ 	}
+ 
++	whatshort = (short)what;
+ 	event_get_assignment(e->event, NULL /* the new base is b->base */,
+ 			(pzfd ? NULL : &fd),
+-			(short *) (what == -1 ? &what : NULL),
++			(whatshort == -1 ? &whatshort : NULL),
+ 			NULL /* ignore old callback */ ,
+ 			NULL /* ignore old callback argument */);
+ 
+-	if (event_assign(e->event, b->base, fd, what, event_cb, (void *)e)) {
++	if (event_assign(e->event, b->base, fd, whatshort, event_cb, (void *)e)) {
+ 		RETURN_FALSE;
+ 	}
+ 	php_event_bind_base(e, zbase);

diff --git a/php-pecl-event.spec b/php-pecl-event.spec
index df0ced7..4a10391 100644
--- a/php-pecl-event.spec
+++ b/php-pecl-event.spec
@@ -29,11 +29,13 @@ Name:          php-pecl-%{pecl_name}
 Summary:       Provides interface to libevent library
 License:       PHP-3.01
 Version:       %{upstream_version}%{?upstream_prever:~%{upstream_prever}}%{?upstream_postver:+%{upstream_postver}}
-Release:       1%{?dist}
+Release:       2%{?dist}
 %forgemeta
 URL:           %{forgeurl}
 Source0:       %{forgesource}
 
+Patch0:        15.patch
+
 ExcludeArch:   %{ix86}
 
 BuildRequires: gcc
@@ -73,6 +75,7 @@ Documentation: http://php.net/event
 
 %prep
 %forgesetup
+%patch -P0 -p1
 
 # Sanity check, really often broken
 extver=$(sed -n '/#define PHP_EVENT_VERSION/{s/.* "//;s/".*$//;p}' php_event.h)
@@ -113,12 +116,6 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
 
 
 %check
-%ifarch s390x
-# See https://github.com/rosmanov/pecl-event/issues/13
-rm tests/76-event-base-reference.phpt
-rm tests/83-base-destroyed-before-event-at-shutdown.phpt
-%endif
-
 if [ -f %{php_extdir}/sockets.so ]; then
   OPTS="-d extension=sockets.so"
 fi
@@ -149,6 +146,10 @@ TEST_PHP_ARGS="-n $OPTS -d extension=$PWD/modules/%{pecl_name}.so" \
 
 
 %changelog
+* Tue Dec  1 2026 Remi Collet <remi@remirepo.net> - 4.0.0-2
+- add fix for bigendian from
+  https://github.com/rosmanov/pecl-event/pull/15
+
 * Tue Dec  1 2026 Remi Collet <remi@remirepo.net> - 4.0.0-1
 - update to 4.0.0
 

                 reply	other threads:[~2026-12-01  9:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179611845707.1.12179217916829430417.rpms-php-pecl-event-1fdca802341d@fedoraproject.org \
    --to=remi@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox