Skip to content

Commit ada4ebc

Browse files
committed
Convert OpenSSL resources to object
1 parent 47e4001 commit ada4ebc

36 files changed

+1081
-763
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+
X509Certificate 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 X509Certificate instance is automatically destroyed if it is no
375+
longer referenced.
376+
. openssl_csr_new() will now return an X509CertificateSigningRequest 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 OpenSSLKey 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 OpenSSLKey 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)