[packages/php/PHP_5_6] Rel 16. Add workaround for https://bugs.php.net/bug.php?id=79589
arekm
arekm at pld-linux.org
Tue Mar 29 16:24:51 CEST 2022
commit 710193cf4f6f20ff055d0fa7a5025be5ee20898e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Mar 29 16:23:51 2022 +0200
Rel 16. Add workaround for https://bugs.php.net/bug.php?id=79589
openssl.patch | 24 ++++++++++++++++++++++++
php.spec | 2 +-
2 files changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/php.spec b/php.spec
index 625356f..ff88e79 100644
--- a/php.spec
+++ b/php.spec
@@ -155,7 +155,7 @@ ERROR: You need to select at least one Apache SAPI to build shared modules.
%undefine with_filter
%endif
-%define rel 15
+%define rel 16
%define orgname php
%define ver_suffix 56
%define php_suffix %{!?with_default_php:%{ver_suffix}}
diff --git a/openssl.patch b/openssl.patch
index 2392017..5edcaeb 100644
--- a/openssl.patch
+++ b/openssl.patch
@@ -1020,3 +1020,27 @@ diff -urNp -x '*.orig' php-5.6.40.org/main/streams/php_stream_transport.h php-5.
STREAM_CRYPTO_METHOD_TLS_ANY_SERVER = ((1 << 3) | (1 << 4) | (1 << 5)),
STREAM_CRYPTO_METHOD_ANY_SERVER = ((1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5))
} php_stream_xport_crypt_method_t;
+--- php-5.6.40/ext/openssl/xp_ssl.c~ 2022-03-29 16:13:39.000000000 +0200
++++ php-5.6.40/ext/openssl/xp_ssl.c 2022-03-29 16:16:30.196548935 +0200
+@@ -1242,6 +1242,10 @@
+ }
+ #endif
+
++#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF
++ ssl_ctx_options |= SSL_OP_IGNORE_UNEXPECTED_EOF;
++#endif
++
+ if (php_stream_context_get_option(stream->context, "ssl", "dh_param", &val) == SUCCESS) {
+ convert_to_string_ex(val);
+ if (FAILURE == set_server_dh_param(ctx, Z_STRVAL_PP(val) TSRMLS_CC)) {
+@@ -1489,6 +1493,10 @@
+ return FAILURE;
+ }
+
++#ifdef SSL_OP_IGNORE_UNEXPECTED_EOF
++ ssl_ctx_options |= SSL_OP_IGNORE_UNEXPECTED_EOF;
++#endif
++
+ #if OPENSSL_VERSION_NUMBER >= 0x0090806fL
+ if (GET_VER_OPT("no_ticket") && zend_is_true(*val)) {
+ ssl_ctx_options |= SSL_OP_NO_TICKET;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/710193cf4f6f20ff055d0fa7a5025be5ee20898e
More information about the pld-cvs-commit
mailing list