[packages/php/PHP_8_1] Rel 4; Fix for symfony Error reading project file [wrapped: /usr/share/php/symfony/lib/plugins/sfPro
arekm
arekm at pld-linux.org
Mon Jun 8 10:13:48 CEST 2026
commit d96ca5b1423506e26f076ecc82312f10e75443df
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Jun 8 10:06:49 2026 +0200
Rel 4; Fix for symfony Error reading project file [wrapped: /usr/share/php/symfony/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build.xml:72:22: Unexpected text '>']
php-xml-attr-entity.patch | 23 +++++++++++++++++++++++
php.spec | 4 +++-
2 files changed, 26 insertions(+), 1 deletion(-)
---
diff --git a/php.spec b/php.spec
index 60d8c04..ad86e72 100644
--- a/php.spec
+++ b/php.spec
@@ -149,7 +149,7 @@ Summary(ru.UTF-8): PHP - язык препроцессирования HTML-фа
Summary(uk.UTF-8): PHP - мова препроцесування HTML-файлів, виконувана на сервері
Name: %{orgname}%{php_suffix}
Version: 8.1.34
-Release: 3
+Release: 4
Epoch: 4
# All files licensed under PHP version 3.01, except
# Zend is licensed under Zend
@@ -205,6 +205,7 @@ Patch67: mysql-lib-ver-mismatch.patch
# https://bugs.php.net/bug.php?id=68344
Patch68: php-mysql-ssl-context.patch
Patch71: libdb-info.patch
+Patch72: php-xml-attr-entity.patch
URL: https://www.php.net/
%{?with_pdo_firebird:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
%{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
@@ -1903,6 +1904,7 @@ cp -p php.ini-production php.ini
%patch -P67 -p1 -b .mysql-lib-ver-mismatch
#%%patch -P68 -p1 DROP or update to 7.0 APIs
%patch -P71 -p1 -b .libdb-info
+%patch -P72 -p1 -b .attr-entity
sed -E -i -e '1s,#!\s*/usr/bin/env\s+(.*),#!%{__bindir}\1,' \
ext/ext_skel.php \
diff --git a/php-xml-attr-entity.patch b/php-xml-attr-entity.patch
new file mode 100644
index 0000000..e991918
--- /dev/null
+++ b/php-xml-attr-entity.patch
@@ -0,0 +1,23 @@
+commit 67259e451d5d58b4842776c5696a66d74e157609
+Author: Niels Dossche <7771979+nielsdos at users.noreply.github.com>
+Date: Fri Jul 5 23:34:09 2024 +0200
+
+ Fix GH-14834: Error installing PHP when --with-pear is used
+
+ libxml2 2.13 makes changes to how the parsing state is set, update our
+ code accordingly. In particular, it started reporting entities within
+ attributes, while it should only report entities inside text nodes.
+
+ Closes GH-14837.
+
+--- a/ext/xml/compat.c
++++ b/ext/xml/compat.c
+@@ -376,7 +376,7 @@ _get_entity(void *user, const xmlChar *n
+ ret = xmlGetDocEntity(parser->parser->myDoc, name);
+
+ ZEND_DIAGNOSTIC_IGNORED_START("-Wdeprecated-declarations")
+- if (ret == NULL || (parser->parser->instate != XML_PARSER_ENTITY_VALUE && parser->parser->instate != XML_PARSER_ATTRIBUTE_VALUE)) {
++ if (ret == NULL || parser->parser->instate == XML_PARSER_CONTENT) {
+ ZEND_DIAGNOSTIC_IGNORED_END
+ if (ret == NULL || ret->etype == XML_INTERNAL_GENERAL_ENTITY || ret->etype == XML_INTERNAL_PARAMETER_ENTITY || ret->etype == XML_INTERNAL_PREDEFINED_ENTITY) {
+ /* Predefined entities will expand unless no cdata handler is present */
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/d96ca5b1423506e26f076ecc82312f10e75443df
More information about the pld-cvs-commit
mailing list