public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php] private-php86: v8.5.7RC1
@ 2026-11-27 7:34 Remi Collet
0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-11-27 7:34 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/php
Branch : private-php86
Commit : 8a1167bffa10725b698bf2d1d1809275533655cd
Author : Remi Collet <remi@fedoraproject.org>
Date : 2026-05-20T08:45:51+02:00
Stats : +19/-147 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/php/c/8a1167bffa10725b698bf2d1d1809275533655cd?branch=private-php86
Log:
v8.5.7RC1
---
diff --git a/.gitignore b/.gitignore
index b9c59b0..b62b975 100644
--- a/.gitignore
+++ b/.gitignore
@@ -45,3 +45,5 @@ TODO
/php-8.5.6RC3.tar.xz.asc
/php-8.5.6.tar.xz
/php-8.5.6.tar.xz.asc
+/php-8.5.7RC1.tar.xz
+/php-8.5.7RC1.tar.xz.asc
diff --git a/php-openssl4.patch b/php-openssl4.patch
deleted file mode 100644
index 7e3f738..0000000
--- a/php-openssl4.patch
+++ /dev/null
@@ -1,140 +0,0 @@
-From c3e703eb1f4475668cb18133eaf965e60a39046a Mon Sep 17 00:00:00 2001
-From: Jordi Kroon <jkroon@onyourmarks.agency>
-Date: Mon, 30 Mar 2026 19:45:32 +0200
-Subject: [PATCH] replace ERR_NUM_ERRORS with PHP_OPENSSL_ERR_BUFFER_SIZE
-
----
- ext/openssl/openssl.c | 6 +++---
- ext/openssl/php_openssl.h | 4 +++-
- 2 files changed, 6 insertions(+), 4 deletions(-)
-
-diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
-index bc00b6b189b9..4baa19988891 100644
---- a/ext/openssl/openssl.c
-+++ b/ext/openssl/openssl.c
-@@ -218,9 +218,9 @@ void php_openssl_store_errors(void)
- errors = OPENSSL_G(errors);
-
- do {
-- errors->top = (errors->top + 1) % ERR_NUM_ERRORS;
-+ errors->top = (errors->top + 1) % PHP_OPENSSL_ERR_BUFFER_SIZE;
- if (errors->top == errors->bottom) {
-- errors->bottom = (errors->bottom + 1) % ERR_NUM_ERRORS;
-+ errors->bottom = (errors->bottom + 1) % PHP_OPENSSL_ERR_BUFFER_SIZE;
- }
- errors->buffer[errors->top] = error_code;
- } while ((error_code = ERR_get_error()));
-@@ -4042,7 +4042,7 @@ PHP_FUNCTION(openssl_error_string)
- RETURN_FALSE;
- }
-
-- OPENSSL_G(errors)->bottom = (OPENSSL_G(errors)->bottom + 1) % ERR_NUM_ERRORS;
-+ OPENSSL_G(errors)->bottom = (OPENSSL_G(errors)->bottom + 1) % PHP_OPENSSL_ERR_BUFFER_SIZE;
- val = OPENSSL_G(errors)->buffer[OPENSSL_G(errors)->bottom];
-
- if (val) {
-diff --git a/ext/openssl/php_openssl.h b/ext/openssl/php_openssl.h
-index 92ccd9a546f9..e565707a3c40 100644
---- a/ext/openssl/php_openssl.h
-+++ b/ext/openssl/php_openssl.h
-@@ -36,6 +36,8 @@ extern zend_module_entry openssl_module_entry;
- #define PHP_OPENSSL_API_VERSION 0x30200
- #endif
-
-+#define PHP_OPENSSL_ERR_BUFFER_SIZE 16
-+
- #define OPENSSL_RAW_DATA 1
- #define OPENSSL_ZERO_PADDING 2
- #define OPENSSL_DONT_ZERO_PAD_KEY 4
-@@ -65,7 +67,7 @@ extern zend_module_entry openssl_module_entry;
- #endif
-
- struct php_openssl_errors {
-- int buffer[ERR_NUM_ERRORS];
-+ int buffer[PHP_OPENSSL_ERR_BUFFER_SIZE];
- int top;
- int bottom;
- };
-From 0609a9badce04d03bbc9cfa6f3d51af23c1a0135 Mon Sep 17 00:00:00 2001
-From: Remi Collet <remi@remirepo.net>
-Date: Thu, 30 Apr 2026 15:52:19 +0200
-Subject: [PATCH] ASN1_STRING has been made opaque in OpenSSL 4
-
----
- ext/openssl/openssl_backend_common.c | 10 +++++-----
- ext/openssl/xp_ssl.c | 14 +++++++-------
- 2 files changed, 12 insertions(+), 12 deletions(-)
-
-diff --git a/ext/openssl/openssl_backend_common.c b/ext/openssl/openssl_backend_common.c
-index 222053984916..5aa8d246177e 100644
---- a/ext/openssl/openssl_backend_common.c
-+++ b/ext/openssl/openssl_backend_common.c
-@@ -108,7 +108,7 @@ void php_openssl_add_assoc_name_entry(zval * val, char * key, X509_NAME * name,
-
- void php_openssl_add_assoc_asn1_string(zval * val, char * key, ASN1_STRING * str)
- {
-- add_assoc_stringl(val, key, (char *)str->data, str->length);
-+ add_assoc_stringl(val, key, (const char *)ASN1_STRING_get0_data(str), ASN1_STRING_length(str));
- }
-
- time_t php_openssl_asn1_time_to_time_t(ASN1_UTCTIME * timestr)
-@@ -140,12 +140,12 @@ time_t php_openssl_asn1_time_to_time_t(ASN1_UTCTIME * timestr)
- }
-
- if (timestr_len < 13) {
-- php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", timestr->data);
-+ php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", ASN1_STRING_get0_data(timestr));
- return (time_t)-1;
- }
-
- if (ASN1_STRING_type(timestr) == V_ASN1_GENERALIZEDTIME && timestr_len < 15) {
-- php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", timestr->data);
-+ php_error_docref(NULL, E_WARNING, "Unable to parse time string %s correctly", ASN1_STRING_get0_data(timestr));
- return (time_t)-1;
- }
-
-@@ -626,8 +626,8 @@ int openssl_x509v3_subjectAltName(BIO *bio, X509_EXTENSION *extension)
- }
-
- extension_data = X509_EXTENSION_get_data(extension);
-- p = extension_data->data;
-- length = extension_data->length;
-+ p = ASN1_STRING_get0_data(extension_data);
-+ length = ASN1_STRING_length(extension_data);
- if (method->it) {
- names = (GENERAL_NAMES*) (ASN1_item_d2i(NULL, &p, length,
- ASN1_ITEM_ptr(method->it)));
-diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c
-index eea758da4713..64f49ca4538d 100644
---- a/ext/openssl/xp_ssl.c
-+++ b/ext/openssl/xp_ssl.c
-@@ -492,12 +492,12 @@ static bool php_openssl_matches_san_list(X509 *peer, const char *subject_name) /
- }
- OPENSSL_free(cert_name);
- } else if (san->type == GEN_IPADD) {
-- if (san->d.iPAddress->length == 4) {
-+ if (ASN1_STRING_length(san->d.iPAddress) == 4) {
- snprintf(ipbuffer, sizeof(ipbuffer), "%d.%d.%d.%d",
-- san->d.iPAddress->data[0],
-- san->d.iPAddress->data[1],
-- san->d.iPAddress->data[2],
-- san->d.iPAddress->data[3]
-+ ASN1_STRING_get0_data(san->d.iPAddress)[0],
-+ ASN1_STRING_get0_data(san->d.iPAddress)[1],
-+ ASN1_STRING_get0_data(san->d.iPAddress)[2],
-+ ASN1_STRING_get0_data(san->d.iPAddress)[3]
- );
- if (strcasecmp(subject_name, (const char*)ipbuffer) == 0) {
- sk_GENERAL_NAME_pop_free(alt_names, GENERAL_NAME_free);
-@@ -506,9 +506,9 @@ static bool php_openssl_matches_san_list(X509 *peer, const char *subject_name) /
- }
- }
- #ifdef HAVE_IPV6_SAN
-- else if (san->d.ip->length == 16 && subject_name_is_ipv6) {
-+ else if (ASN1_STRING_length(san->d.ip) == 16 && subject_name_is_ipv6) {
- ipbuffer[0] = 0;
-- EXPAND_IPV6_ADDRESS(ipbuffer, san->d.iPAddress->data);
-+ EXPAND_IPV6_ADDRESS(ipbuffer, ASN1_STRING_get0_data(san->d.iPAddress));
- if (strcasecmp((const char*)subject_name_ipv6_expanded, (const char*)ipbuffer) == 0) {
- sk_GENERAL_NAME_pop_free(alt_names, GENERAL_NAME_free);
-
diff --git a/php.spec b/php.spec
index 8f57aba..a52f1fe 100644
--- a/php.spec
+++ b/php.spec
@@ -67,7 +67,7 @@
# liburiparser version 1.0.0 required
%global liburiparser_minver 1.0.0
-%global liburiparser_bunver 1.0.1
+%global liburiparser_bunver 1.0.2
%if 0%{?fedora}
# use system liburiparser when available
%bcond_without liburiparser
@@ -76,8 +76,8 @@
%bcond_with liburiparser
%endif
-%global upver 8.5.6
-#global rcver RC3
+%global upver 8.5.7
+%global rcver RC1
Summary: PHP scripting language for creating dynamic web sites
%if %{with rename}
@@ -143,7 +143,6 @@ Patch47: php-8.4.0-phpinfo.patch
Patch48: php-8.5.0-openssl-ec-param.patch
# Upstream fixes (100+)
-Patch100: php-openssl4.patch
# Security fixes (200+)
@@ -864,7 +863,6 @@ in pure PHP.
%patch -P48 -p1 -b .ec-param
# upstream patches
-%patch -P100 -p1 -b .v4
# security patches
@@ -945,6 +943,15 @@ if test "x${vlexbor}" != "x%{lexborver}"; then
exit 1
fi
+vurimaj=$(sed -n '/define URI_VER_MAJ/{s/.* //;s/\.$//;p}' ext/uri/uriparser/include/uriparser/UriBase.h)
+vurimin=$(sed -n '/define URI_VER_MIN/{s/.* //;s/\.$//;p}' ext/uri/uriparser/include/uriparser/UriBase.h)
+vurirel=$(sed -n '/define URI_VER_REL/{s/.* //;s/\.$//;p}' ext/uri/uriparser/include/uriparser/UriBase.h)
+if test "x${vurimaj}.${vurimin}.${vurirel}" != "x%{liburiparser_bunver}"; then
+ : Error: Upstream uriparser version is now ${vurimaj}.${vurimin}.${vurirel}, expecting %{liburiparser_bunver}.
+ : Update the liburiparser_bunver macro and rebuild.
+ exit 1
+fi
+
# https://bugs.php.net/63362 - Not needed but installed headers.
# Drop some Windows specific headers to avoid installation,
# before build to ensure they are really not needed.
@@ -1666,6 +1673,9 @@ systemctl try-restart php-fpm.service >/dev/null 2>&1 || :
%changelog
+* Wed May 20 2026 Remi Collet <remi@remirepo.net> - 8.5.7~RC1-1
+- update to 8.5.7RC1
+
* Wed May 6 2026 Remi Collet <remi@remirepo.net> - 8.5.6-1
- Update to 8.5.6 - http://www.php.net/releases/8_5_6.php
diff --git a/sources b/sources
index d89022a..c7705cc 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (php-8.5.6.tar.xz) = e0ce5430809d5347ffdaba827e2c62fefb570b112014add16be545fd444ec374ebc76c373d5a254930538994a639ddd15508cd1083c4ead8ea0b76e7cead0c7c
-SHA512 (php-8.5.6.tar.xz.asc) = c0bfa34fc2747155393df4e05eeb0988634c445bff1570a2f9954555310bb41775a5ea2bf61067b5aa72c170fcff3b0f6395f1da14bf0ba4ea78c6c7b8968748
+SHA512 (php-8.5.7RC1.tar.xz) = ddd61e3ec6b0e9e0c319ee746a400cb7f607899d6bad97036d8ecd2c8ff3aedc8b8da6fe6ffc6215e1190aefddc19e0d6935861f823b7090aadec3bf71bb8132
+SHA512 (php-8.5.7RC1.tar.xz.asc) = 7e345716ab5e453e98e780f1ca27b9822252f0717c801ffc5b62b9b663cb43405cdbacd692d1e9ce207c4dd6a9fda36c35ea4e0bd3f36bf152f84dd9088abb7f
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-27 7:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 7:34 [rpms/php] private-php86: v8.5.7RC1 Remi Collet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox