Projects
home:rottame:vhosts-ng:php80
php8
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 15
View file
php8.spec
Changed
@@ -97,6 +97,12 @@ # PATCH-FEATURE-UPSTREAM https://github.com/php/php-src/pull/6564 Patch19: php-build-reproducible-phar.patch Patch1000: session-save-path.patch +# vhng: build against libgd >= 2.3 (GD_FLIP_* removed) +Patch1001: php8-gd-libgd23.patch +# vhng: ICU >= 75 headers require C++17 +Patch1002: php8-intl-cxx17.patch +# vhng: ext/xml entity handling with libxml2 >= 2.13 (php-src GH-14834) +Patch1003: php8-xml-libxml213.patch # CVE-2024-2756 bsc#1222857, host/secure cookie bypass due to partial fix Patch30: php8-CVE-2024-2756.patch # CVE-2024-3096 bsc#1222858, password_verify can erroneously return true, opening ATO risk @@ -253,7 +259,7 @@ BuildRequires: pkgconfig(libzip) >= 0.11 BuildRequires: pkgconfig(odbc) BuildRequires: pkgconfig(oniguruma) -BuildRequires: libopenssl-1_1-devel +BuildRequires: pkgconfig(openssl) >= 1.0.1 BuildRequires: pkgconfig(sqlite3) > 3.7.4 BuildRequires: pkgconfig(zlib) >= 1.2.0.4 %if %{build_firebird}
View file
php8-RSA_SSLV23_PADDING.patch
Added
@@ -0,0 +1,23 @@ +From a7df3564004807b812f189048463d8ad89fb0f21 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Tue, 18 May 2021 07:58:49 +0200 +Subject: PATCH minimal fix for openssl 3.0 + +https://github.com/php/php-src/pull/7002 +--- + ext/openssl/openssl.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c +--- a/ext/openssl/openssl.c ++++ b/ext/openssl/openssl.c +@@ -1325,7 +1325,9 @@ PHP_MINIT_FUNCTION(openssl) + REGISTER_LONG_CONSTANT("OPENSSL_CMS_NOSIGS", CMS_NOSIGS, CONST_CS|CONST_PERSISTENT); + + REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_PADDING", RSA_PKCS1_PADDING, CONST_CS|CONST_PERSISTENT); ++#ifdef RSA_SSLV23_PADDING + REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT); ++#endif + REGISTER_LONG_CONSTANT("OPENSSL_NO_PADDING", RSA_NO_PADDING, CONST_CS|CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_OAEP_PADDING", RSA_PKCS1_OAEP_PADDING, CONST_CS|CONST_PERSISTENT); +
View file
php8-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 +@@ -94,6 +94,12 @@ + #if defined(GD_FLIP_HORINZONTAL) && !defined(GD_FLIP_HORIZONTAL) + #define GD_FLIP_HORIZONTAL GD_FLIP_HORINZONTAL + #endif ++/* libgd >= 2.3 no longer defines the flip modes; same values as the bundled libgd */ ++#ifndef GD_FLIP_HORIZONTAL ++# define GD_FLIP_HORIZONTAL 1 ++# define GD_FLIP_VERTICAL 2 ++# define GD_FLIP_BOTH 3 ++#endif + + #ifdef HAVE_GD_FREETYPE + static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int);
View file
php8-intl-cxx17.patch
Added
@@ -0,0 +1,13 @@ +ext/intl: build with C++17, required by the public headers of ICU >= 75. + +--- a/ext/intl/config.m4 ++++ b/ext/intl/config.m4 +@@ -83,7 +83,7 @@ + breakiterator/codepointiterator_methods.cpp" + + PHP_REQUIRE_CXX() +- PHP_CXX_COMPILE_STDCXX(11, mandatory, PHP_INTL_STDCXX) ++ PHP_CXX_COMPILE_STDCXX(17, mandatory, PHP_INTL_STDCXX) + PHP_INTL_CXX_FLAGS="$INTL_COMMON_FLAGS $PHP_INTL_STDCXX $ICU_CXXFLAGS" + case $host_alias in + *cygwin*) PHP_INTL_CXX_FLAGS="$PHP_INTL_CXX_FLAGS -D_POSIX_C_SOURCE=200809L"
View file
php8-xml-libxml213.patch
Added
@@ -0,0 +1,54 @@ +From dc2ce0df9be530e7ee91b0dfa6eb6ce2d5e5baad Mon Sep 17 00:00:00 2001 +From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> +Date: Fri, 5 Jul 2024 23:34:09 +0200 +Subject: PATCH 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. + +vhng: backported to PHP 8.0.30, test uses SKIPIF instead of --EXTENSIONS-- +--- +--- a/ext/xml/compat.c ++++ b/ext/xml/compat.c +@@ -375,7 +375,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)) { +--- /dev/null ++++ b/ext/xml/tests/gh14834.phpt +@@ -0,0 +1,29 @@ ++--TEST-- ++GH-14834 (Error installing PHP when --with-pear is used) ++--SKIPIF-- ++<?php require_once("skipif.inc"); ?> ++--FILE-- ++<?php ++$xml = <<<XML ++<?xml version="1.0" encoding="UTF-8"?> ++<!DOCTYPE root ++ <!ENTITY foo "ent"> ++> ++<root> ++ <element hint="hello'world">&foo;<!CDATA & ><?x & ?></element> ++</root> ++XML; ++ ++$parser = xml_parser_create(); ++xml_set_character_data_handler($parser, function($_, $data) { ++ var_dump($data); ++}); ++xml_parse($parser, $xml, true); ++?> ++--EXPECT-- ++string(3) " ++ " ++string(3) "ent" ++string(7) " & " ++string(1) " ++"
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
.