summaryrefslogtreecommitdiffstats
path: root/php-8.5.0-openssl-ec-param.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-09-25 09:44:57 +0200
committerRemi Collet <remi@php.net>2025-09-25 09:44:57 +0200
commit8c417f16dc08303619cc733c18e5275549223f83 (patch)
tree7ce5bcf16be66fc51284652f6390681e1df54fd2 /php-8.5.0-openssl-ec-param.patch
parentde7a1948c5b2cab56eab29e55d803c58acd58161 (diff)
update to 8.5.0RC1
bump ABI/API numbers to 20240925 drop opcache subpackage, extension is build statically add lexbor and uri extension (always static) move /usr/share/fpm/status.html to /usr/share/php/fpm/status.html
Diffstat (limited to 'php-8.5.0-openssl-ec-param.patch')
-rw-r--r--php-8.5.0-openssl-ec-param.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/php-8.5.0-openssl-ec-param.patch b/php-8.5.0-openssl-ec-param.patch
new file mode 100644
index 0000000..223d34e
--- /dev/null
+++ b/php-8.5.0-openssl-ec-param.patch
@@ -0,0 +1,35 @@
+diff -up ./ext/openssl/openssl_backend_v1.c.ec-param ./ext/openssl/openssl_backend_v1.c
+--- ./ext/openssl/openssl_backend_v1.c.ec-param 2025-06-30 15:57:32.345876147 +0200
++++ ./ext/openssl/openssl_backend_v1.c 2025-06-30 15:59:43.380395611 +0200
+@@ -256,13 +256,8 @@ static bool php_openssl_pkey_init_ec_dat
+ OPENSSL_PKEY_SET_BN(data, b);
+ OPENSSL_PKEY_SET_BN(data, order);
+
++ php_error_docref(NULL, E_WARNING, "Missing params: curve_name (params only is not supported by OpenSSL)");
+ if (!(p && a && b && order)) {
+- if (!p && !a && !b && !order) {
+- php_error_docref(NULL, E_WARNING, "Missing params: curve_name");
+- } else {
+- php_error_docref(
+- NULL, E_WARNING, "Missing params: curve_name or p, a, b, order");
+- }
+ goto clean_exit;
+ }
+
+diff -up ./ext/openssl/openssl_backend_v3.c.ec-param ./ext/openssl/openssl_backend_v3.c
+--- ./ext/openssl/openssl_backend_v3.c.ec-param 2025-06-30 15:57:38.753560492 +0200
++++ ./ext/openssl/openssl_backend_v3.c 2025-06-30 16:01:02.221616267 +0200
+@@ -312,12 +312,8 @@ EVP_PKEY *php_openssl_pkey_init_ec(zval
+ OPENSSL_PKEY_SET_BN(data, b);
+ OPENSSL_PKEY_SET_BN(data, order);
+
++ php_error_docref(NULL, E_WARNING, "Missing params: curve_name (params only is not supported by OpenSSL)");
+ if (!(p && a && b && order)) {
+- if (!p && !a && !b && !order) {
+- php_error_docref(NULL, E_WARNING, "Missing params: curve_name");
+- } else {
+- php_error_docref(NULL, E_WARNING, "Missing params: curve_name or p, a, b, order");
+- }
+ goto cleanup;
+ }
+