Skip to content

Commit dce0d97

Browse files
committed
Fix stub for openssl_csr_new
1 parent 9f63657 commit dce0d97

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ PHP NEWS
2525
. Fixed bug GH-16032 (Various NULL pointer dereferencements in
2626
ldap_modify_batch()). (Girgias)
2727

28+
- OpenSSL:
29+
. Fixed stub for openssl_csr_new. (Jakub Zelenka)
30+
2831
- PHPDBG:
2932
. Fixed bug GH-15901 (phpdbg: Assertion failure on i funcs). (cmb)
3033

ext/openssl/openssl.stub.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,9 @@ function openssl_csr_export(OpenSSLCertificateSigningRequest|string $csr, &$outp
433433
function openssl_csr_sign(OpenSSLCertificateSigningRequest|string $csr, OpenSSLCertificate|string|null $ca_certificate, #[\SensitiveParameter] $private_key, int $days, ?array $options = null, int $serial = 0): OpenSSLCertificate|false {}
434434

435435
/**
436-
* @param OpenSSLAsymmetricKey $private_key
436+
* @param OpenSSLAsymmetricKey|null $private_key
437437
*/
438-
function openssl_csr_new(array $distinguished_names, #[\SensitiveParameter] &$private_key, ?array $options = null, ?array $extra_attributes = null): OpenSSLCertificateSigningRequest|false {}
438+
function openssl_csr_new(array $distinguished_names, #[\SensitiveParameter] &$private_key, ?array $options = null, ?array $extra_attributes = null): OpenSSLCertificateSigningRequest|bool {}
439439

440440
/**
441441
* @return array<string, string|array>|false

ext/openssl/openssl_arginfo.h

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)