[packages/php] Up to 8.1.4; workaround behaviour change in openssl 3

arekm arekm at pld-linux.org
Tue Mar 29 14:33:58 CEST 2022


commit d1d5e76fed606f53b5938b0b888cec07b94dd39e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Mar 29 14:32:56 2022 +0200

    Up to 8.1.4; workaround behaviour change in openssl 3

 openssl.patch | 26 ++++++++++++++++++++++++++
 php.spec      |  7 +++++--
 2 files changed, 31 insertions(+), 2 deletions(-)
---
diff --git a/php.spec b/php.spec
index 4ec9c3b..b440781 100644
--- a/php.spec
+++ b/php.spec
@@ -148,7 +148,7 @@ Summary(pt_BR.UTF-8):	A linguagem de script PHP
 Summary(ru.UTF-8):	PHP - язык препроцессирования HTML-файлов, выполняемый на сервере
 Summary(uk.UTF-8):	PHP - мова препроцесування HTML-файлів, виконувана на сервері
 Name:		%{orgname}%{php_suffix}
-Version:	8.1.3
+Version:	8.1.4
 Release:	1
 Epoch:		4
 # All files licensed under PHP version 3.01, except
@@ -157,7 +157,7 @@ Epoch:		4
 License:	PHP 3.01 and Zend and BSD
 Group:		Libraries
 Source0:	https://php.net/distributions/%{orgname}-%{version}.tar.xz
-# Source0-md5:	495972570d055fef1255e296051a13a5
+# Source0-md5:	6473a944378c59080bcd837552dcaf3f
 Source1:	opcache.ini
 Source2:	%{orgname}-mod_php.conf
 Source3:	%{orgname}-cgi-fcgi.ini
@@ -174,6 +174,8 @@ Patch1:		%{orgname}-pldlogo.patch
 Patch2:		%{orgname}-mail.patch
 Patch3:		%{orgname}-link-libs.patch
 Patch4:		intl-stdc++.patch
+# https://bugs.php.net/bug.php?id=79589
+Patch5:		openssl.patch
 Patch7:		%{orgname}-sapi-ini-file.patch
 Patch10:	%{orgname}-ini.patch
 Patch11:	embed.patch
@@ -1865,6 +1867,7 @@ cp -p php.ini-production php.ini
 #%patch2 -p1 -b .mail
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %patch7 -p1 -b .sapi-ini-file
 %patch10 -p1 -b .ini
diff --git a/openssl.patch b/openssl.patch
new file mode 100644
index 0000000..1256370
--- /dev/null
+++ b/openssl.patch
@@ -0,0 +1,26 @@
+diff --git a/ext/openssl/xp_ssl.c b/ext/openssl/xp_ssl.c
+index 5564bf6f08..423f696c76 100644
+--- a/ext/openssl/xp_ssl.c
++++ b/ext/openssl/xp_ssl.c
+@@ -1286,6 +1286,10 @@ static int php_openssl_set_server_specific_opts(php_stream *stream, SSL_CTX *ctx
+ 	zval *zv;
+ 	long ssl_ctx_options = SSL_CTX_get_options(ctx);
+ 
++#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF
++	ssl_ctx_options |= SSL_OP_IGNORE_UNEXPECTED_EOF;
++#endif
++
+ #if defined(HAVE_ECDH) && PHP_OPENSSL_API_VERSION < 0x10100
+ 	if (php_openssl_set_server_ecdh_curve(stream, ctx) == FAILURE) {
+ 		return FAILURE;
+@@ -1628,6 +1632,10 @@ int php_openssl_setup_crypto(php_stream *stream,
+ 	ssl_ctx_options = SSL_OP_ALL;
+ #endif
+ 
++#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF
++	ssl_ctx_options |= SSL_OP_IGNORE_UNEXPECTED_EOF;
++#endif
++
+ 	if (sslsock->ctx == NULL) {
+ 		php_error_docref(NULL, E_WARNING, "SSL context creation failure");
+ 		return FAILURE;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/d1d5e76fed606f53b5938b0b888cec07b94dd39e



More information about the pld-cvs-commit mailing list