Projects
home:rottame:vhosts-ng:php73
php7
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 14
View file
php7.spec
Changed
@@ -26,7 +26,7 @@ %define extension_dir %{_libdir}/%{pkg_name}/extensions %define peardir %{_datadir}/%{pkg_name}/PEAR %define php_sysconf %{_sysconfdir}/%{pkg_name} -%define build_firebird 0%{?is_opensuse} +%define build_firebird 0 %define build_sodium 0 %if %{?suse_version} > 1320 %define build_sodium 1 @@ -85,6 +85,12 @@ # CVE-2026-109618 CVE-2026-109619 (PHP2Shell), community backport for remicollet/php-src-security # https://github.com/Anton-Barinov/php2shell-patches php-7.3-enhanced-remicollet.patch Patch1001: php7-CVE-2026-109618,109619.patch +# PATCH-FIX-OPENSUSE Leap 16: libgd >= 2.3 no longer defines GD_FLIP_* +Patch1002: php7-gd-libgd23.patch +# PATCH-FIX-UPSTREAM Leap 16: ICU >= 70 BreakIterator::operator== returns bool +Patch1003: php7-intl-icu70.patch +# PATCH-FIX-UPSTREAM Leap 16: ext/xml entity handling with libxml2 >= 2.13 (php-src GH-14834) +Patch1004: php7-xml-libxml213.patch BuildRequires: apache-rpm-macros BuildRequires: apache2-devel BuildRequires: autoconf @@ -1068,6 +1074,11 @@ %patch -P 17 -p1 %patch -P 1000 -p1 %patch -P 1001 -p1 +%if 0%{?suse_version} >= 1600 +%patch -P 1002 -p1 +%patch -P 1003 -p1 +%patch -P 1004 -p1 +%endif # Safety check for API version change. vapi=`sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h` @@ -1125,6 +1136,11 @@ CFLAGS="$CFLAGS -Og" CXXFLAGS="$CXXFLAGS -Og" %endif +%if 0%{?suse_version} >= 1600 +# ICU >= 61/68 compat for ext/intl: implicit "using namespace icu" and TRUE/FALSE macros +CFLAGS="$CFLAGS -DU_USING_ICU_NAMESPACE=1 -DU_DEFINE_FALSE_AND_TRUE=1" +CXXFLAGS="$CXXFLAGS -DU_USING_ICU_NAMESPACE=1 -DU_DEFINE_FALSE_AND_TRUE=1" +%endif export CFLAGS export CXXFLAGS export LDFLAGS="-pie" @@ -1512,6 +1528,10 @@ %files fastcgi %defattr(-, root, root) %{_bindir}/php-cgi +%if 0%{?suse_version} >= 1600 +# no longer owned by apache2 on Leap 16 +%dir /srv/www/cgi-bin +%endif /srv/www/cgi-bin/php %dir %{php_sysconf}/fastcgi %config(noreplace) %{php_sysconf}/fastcgi/php.ini
View file
php7-gd-libgd23.patch
Added
@@ -0,0 +1,18 @@ +ext/gd: build against libgd >= 2.3, which no longer defines GD_FLIP_* +(used only for the IMG_FLIP_* constants and the imageflip() switch). + +--- a/ext/gd/gd.c ++++ b/ext/gd/gd.c +@@ -62,6 +62,12 @@ + + #include <gd.h> + #include <gd_errors.h> ++/* libgd >= 2.3 no longer defines the flip modes; same values as the bundled libgd */ ++#ifndef GD_FLIP_HORINZONTAL ++# define GD_FLIP_HORINZONTAL 1 ++# define GD_FLIP_VERTICAL 2 ++# define GD_FLIP_BOTH 3 ++#endif + #include <gdfontt.h> /* 1 Tiny font */ + #include <gdfonts.h> /* 2 Small font */ + #include <gdfontmb.h> /* 3 Medium bold font */
View file
php7-intl-icu70.patch
Added
@@ -0,0 +1,31 @@ +ext/intl: ICU >= 70 changed BreakIterator::operator== to return bool +(same fix as upstream PHP 7.4/8.0). + +--- a/ext/intl/breakiterator/codepointiterator_internal.h ++++ b/ext/intl/breakiterator/codepointiterator_internal.h +@@ -39,7 +39,11 @@ + + virtual ~CodePointBreakIterator(); + ++#if U_ICU_VERSION_MAJOR_NUM >= 70 ++ virtual bool operator==(const BreakIterator& that) const; ++#else + virtual UBool operator==(const BreakIterator& that) const; ++#endif + + virtual CodePointBreakIterator* clone(void) const; + +--- a/ext/intl/breakiterator/codepointiterator_internal.cpp ++++ b/ext/intl/breakiterator/codepointiterator_internal.cpp +@@ -75,7 +75,11 @@ + clearCurrentCharIter(); + } + ++#if U_ICU_VERSION_MAJOR_NUM >= 70 ++bool CodePointBreakIterator::operator==(const BreakIterator& that) const ++#else + UBool CodePointBreakIterator::operator==(const BreakIterator& that) const ++#endif + { + if (typeid(*this) != typeid(that)) { + return FALSE;
View file
php7-xml-libxml213.patch
Added
@@ -0,0 +1,15 @@ +ext/xml: fix entity handling with libxml2 >= 2.13 (PEAR install fails with +"Invalid tag order in <dependencies>, found <_content>"). +Backport of php-src 67259e451d5d58b4842776c5696a66d74e157609 (GH-14834). + +--- a/ext/xml/compat.c ++++ b/ext/xml/compat.c +@@ -377,7 +377,7 @@ + if (ret == NULL) + ret = xmlGetDocEntity(parser->parser->myDoc, name); + +- 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) { + 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 */ + if (parser->h_default && ! (ret && ret->etype == XML_INTERNAL_PREDEFINED_ENTITY && parser->h_cdata)) {
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.