Skip to content

Commit 5eec12d

Browse files
committed
use zend_ce_exception instead of zend_exception_get_default() for 8.5
1 parent 4516e22 commit 5eec12d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crypto.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ PHP_MINIT_FUNCTION(crypto)
7676
zend_class_entry ce;
7777

7878
/* Register base exception */
79+
#if PHP_VERSION_ID < 70000
7980
PHP_CRYPTO_EXCEPTION_REGISTER_CE(ce, Crypto, zend_exception_get_default(TSRMLS_C));
81+
#else
82+
PHP_CRYPTO_EXCEPTION_REGISTER_CE(ce, Crypto, zend_ce_exception);
83+
#endif
8084

8185
/* Init OpenSSL algorithms */
8286
OpenSSL_add_all_algorithms();

0 commit comments

Comments
 (0)