Skip to content

Commit 9f44eca

Browse files
kocsismatenikic
andcommitted
Convert resources to objects in ext/openssl
Closes GH-5860 Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
1 parent 97f10fc commit 9f44eca

36 files changed

+1088
-769
lines changed

UPGRADING

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,23 @@ PHP 8.0 UPGRADE NOTES
366366
. Several alias functions have been marked as deprecated.
367367
. oci_internal_debug() and its alias ociinternaldebug() have been removed.
368368

369+
- OpenSSL:
370+
. openssl_x509_read() and openssl_csr_sign() will now return an
371+
OpenSSLCertificate object rather than a resource. Return value checks using
372+
is_resource() should be replaced with checks for `false`.
373+
. The openssl_x509_free() function is deprecated and no longer has an effect,
374+
instead the OpenSSLCertificate instance is automatically destroyed if it is no
375+
longer referenced.
376+
. openssl_csr_new() will now return an OpenSSLCertificateSigningRequest object
377+
rather than a resource. Return value checks using is_resource() should be
378+
replaced with checks for `false`.
379+
. openssl_pkey_new() will now return an OpenSSLAsymmetricKey object rather than a
380+
resource. Return value checks using is_resource() should be replaced with
381+
checks for `false`.
382+
. The openssl_pkey_free() function is deprecated and no longer has an effect,
383+
instead the OpenSSLAsymmetricKey instance is automatically destroyed if it is no
384+
longer referenced.
385+
369386
- PCRE:
370387
. When passing invalid escape sequences they are no longer interpreted as
371388
literals. This behavior previously required the X modifier - which is

0 commit comments

Comments
 (0)