Skip to content

[pull] master from php:master#607

Merged
pull[bot] merged 9 commits into
dolfly:masterfrom
php:master
Mar 12, 2026
Merged

[pull] master from php:master#607
pull[bot] merged 9 commits into
dolfly:masterfrom
php:master

Conversation

@pull

@pull pull Bot commented Mar 12, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

ndossche and others added 9 commits March 12, 2026 17:48
* replace strcat/strncpy with memcpy for pre-allocated buffers.
* remove redundant memset before struct copy.
openssl_pkey_new() checks private_key_bits >= 384 before generating any
key. For EC, X25519, ED25519, X448, and ED448 the size is inherent to
the curve or algorithm, so this check doesn't apply and causes failures
when default_bits is missing from openssl.cnf (which is the case in
OpenSSL 3.6's default config).

Skip the minimum-bits check for key types that don't use private_key_bits.

Closes GH-21387.
* PHP-8.4:
  Fix GH-21083: Skip private_key_bits validation for EC/curve-based keys
* PHP-8.5:
  Fix GH-21083: Skip private_key_bits validation for EC/curve-based keys
* PHP-8.4:
  [ci skip] NEWS for GH-20838
* PHP-8.5:
  [ci skip] NEWS for GH-20838
@pull pull Bot locked and limited conversation to collaborators Mar 12, 2026
@pull pull Bot added the ⤵️ pull label Mar 12, 2026
@pull pull Bot merged commit a026333 into dolfly:master Mar 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants