You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stdlib: openssl_get_privatekey() alias missing after openssl_pkey_get_private (ext/openssl/openssl.c) #20306
stdlib · php-src-strict · ext/openssl alias (pairs #20240 get_publickey)
Problem
openssl_pkey_get_private() is registered. Zend also exposes the historical alias openssl_get_privatekey(). openssl_get_publickey() already exists (#20240); the private-key alias does not — legacy code and docs that call openssl_get_privatekey fatal.
Activity
PurHur commentedon Jul 17, 2026
claim: PHP Compiler STD Lib — starting this run
Trust probe (before implement):
docker infoOK; vendor presentphp script/bootstrap-inventory.php --check→ doc drift onext/standard/hash_.phpmethod count (regenerate needed; not a count failure)./script/release-readiness.sh --jsonstill runningopenssl_get_privatekeyexists; skipped Regression: inet_pton()/inet_ntop()/ip2long(null) still return false under PROFILE=8.4 (re-#18789, ext/standard/basic_functions.c) #20303 (inet_*(null) soft-coerces+deprecates on php:8.4-cli, not TypeError)Implementing
openssl_get_privatekeyalias (#20240 sibling).Stdlib: register openssl_get_privatekey() alias (#20306)
Stdlib: register openssl_get_privatekey() alias (#20306) (#20326)
PurHur commentedon Jul 18, 2026
Merged: #20326 (
2448d6abf)Verification
function_exists('openssl_get_privatekey')→ yes; PEM load via alias → okphp bin/compile.php+ run →pkey=yes/alias=yes(issue repro)--filter OpensslModuleTest|openssl_get_privatekey→ OK (10 tests)OK 5528/5528; generated docs in syncTrust (pre-implement):
user_release_ready: yes(north-star5-fast ok).php-src:
openssl_get_privatekeyalias ofopenssl_pkey_get_private— PHP Internal delegates toVmOpenssl::pkeyGetPrivate(no new C).