[packages/php-pecl-expect] i686 fixes

arekm arekm at pld-linux.org
Thu Feb 19 13:25:11 CET 2026


commit 322a2d6f1ad466272ded2e6e1b99a89b3cf148b0
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Feb 19 13:25:05 2026 +0100

    i686 fixes

 build.patch          | 17 +++++++++++++++++
 php-pecl-expect.spec |  2 ++
 2 files changed, 19 insertions(+)
---
diff --git a/php-pecl-expect.spec b/php-pecl-expect.spec
index fa87f26..ae13b6a 100644
--- a/php-pecl-expect.spec
+++ b/php-pecl-expect.spec
@@ -11,6 +11,7 @@ Group:		Development/Languages/PHP
 Source0:	https://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5:	f4cfd4ff3a1ff5ee29ff833a9e5df1cb
 Patch0:		master.patch
+Patch1:		build.patch
 URL:		https://pecl.php.net/package/expect/
 BuildRequires:	%{php_name}-devel >= 3:5.0.4
 BuildRequires:	expect-devel
@@ -36,6 +37,7 @@ To rozszerzenie ma w PECL status: %{status}.
 %setup -qc
 mv %{modname}-%{version}/* .
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 phpize
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..a31fb70
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,17 @@
+--- php85-pecl-expect-0.4.0/expect.c~	2026-02-19 13:21:55.000000000 +0100
++++ php85-pecl-expect-0.4.0/expect.c	2026-02-19 13:23:40.059226939 +0100
+@@ -309,12 +309,13 @@ PHP_FUNCTION(expect_expectl)
+ 	struct exp_case *ecases, *ecases_ptr, matchedcase;
+ #if PHP_MAJOR_VERSION >= 7
+     zval *z_stream, *z_cases, *z_match=NULL, *z_case, *z_value;
++	zend_ulong key;
+ #else
+ 	zval *z_stream, *z_cases, *z_match=NULL, **z_case, **z_value;
++	ulong key;
+ #endif
+ 	php_stream *stream;
+ 	int fd, argc;
+-	ulong key;
+ 	
+ 	if (ZEND_NUM_ARGS() < 2 || ZEND_NUM_ARGS() > 3) { WRONG_PARAM_COUNT; }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-expect.git/commitdiff/322a2d6f1ad466272ded2e6e1b99a89b3cf148b0



More information about the pld-cvs-commit mailing list