public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php-kissifrot-php-ixr] rawhide: Add a patch removing deprecated code
@ 2026-07-21 8:31 Artur Frenszek-Iwicki
0 siblings, 0 replies; only message in thread
From: Artur Frenszek-Iwicki @ 2026-07-21 8:31 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/php-kissifrot-php-ixr
Branch : rawhide
Commit : 55dd488c17ea8a6dd2ce5aae958375392763e459
Author : Artur Frenszek-Iwicki <fedora@svgames.pl>
Date : 2026-07-21T10:30:31+02:00
Stats : +36/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/php-kissifrot-php-ixr/c/55dd488c17ea8a6dd2ce5aae958375392763e459?branch=rawhide
Log:
Add a patch removing deprecated code
---
diff --git a/0000-php84.patch b/0000-php84.patch
new file mode 100644
index 0000000..60dd341
--- /dev/null
+++ b/0000-php84.patch
@@ -0,0 +1,28 @@
+From 15bc2183654e230658b1bd7f155e0b21d1539d71 Mon Sep 17 00:00:00 2001
+From: Andreas Gohr <andi@splitbrain.org>
+Date: Mon, 25 Nov 2024 14:50:44 +0100
+Subject: [PATCH] fix deprecated xml_set_* calls
+
+Instead of first setting the handler object and then passing the
+handlers as strings, handlers should be set via proper callables.
+The old method has been deprecated in PHP 8.4
+---
+ src/Message/Message.php | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/src/Message/Message.php b/src/Message/Message.php
+index d932431..8203e37 100644
+--- a/src/Message/Message.php
++++ b/src/Message/Message.php
+@@ -65,9 +65,8 @@ public function parse()
+ // Set XML parser to take the case of tags in to account
+ xml_parser_set_option($this->_parser, XML_OPTION_CASE_FOLDING, false);
+ // Set XML parser callback functions
+- xml_set_object($this->_parser, $this);
+- xml_set_element_handler($this->_parser, 'tagOpen', 'tagClose');
+- xml_set_character_data_handler($this->_parser, 'cdata');
++ xml_set_element_handler($this->_parser, [$this, 'tagOpen'], [$this, 'tagClose']);
++ xml_set_character_data_handler($this->_parser, [$this, 'cdata']);
+ $chunk_size = 262144; // 256Kb, parse in chunks to avoid the RAM usage on very large messages
+ $final = false;
+ do {
diff --git a/php-kissifrot-php-ixr.spec b/php-kissifrot-php-ixr.spec
index e4e6fdb..3d5f02c 100644
--- a/php-kissifrot-php-ixr.spec
+++ b/php-kissifrot-php-ixr.spec
@@ -3,7 +3,7 @@
Name: php-%{author}-%{project}
Version: 1.8.4
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: XML-RPC library for PHP
License: BSD
@@ -18,6 +18,10 @@ Source0: %{name}-%{version}.zip
# and zip it up
Source1: makesrc.sh
+# Backport an upstream commit removing usage of deprecated code.
+# https://github.com/kissifrot/php-ixr/commit/15bc2183654e230658b1bd7f155e0b21d1539d71
+Patch0: 0000-php84.patch
+
BuildArch: noarch
%global with_tests 1
@@ -102,6 +106,9 @@ phpunit8 --verbose --bootstrap %{buildroot}%{pkgdir}/autoload.php
%changelog
+* Tue Jul 21 2026 Artur Frenszek-Iwicki <fedora@svgames.pl> - 1.8.4-5
+- Add a patch removing deprecated code
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-21 8:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-21 8:31 [rpms/php-kissifrot-php-ixr] rawhide: Add a patch removing deprecated code Artur Frenszek-Iwicki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox