Skip to content

Commit f4e1768

Browse files
committed
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Fixed bug #80368
2 parents 48ff654 + 0f579fd commit f4e1768

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

NEWS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ PHP NEWS
2020
. Fixed bug #80404 (Incorrect range inference result when division results
2121
in float). (Nikita)
2222
. Fixed bug #80377 (Opcache misses executor_globals). (Nikita)
23-
. Fixed bug #80433 ( Unable to disable the use of the AVX command when using
23+
. Fixed bug #80433 (Unable to disable the use of the AVX command when using
2424
JIT). (Nikita)
2525

26+
- OpenSSL:
27+
. Fixed bug #80368 (OpenSSL extension fails to build against LibreSSL due to
28+
lack of OCB support). (Nikita)
29+
2630
- Standard:
2731
. Fixed bug #80366 (Return Value of zend_fstat() not Checked). (sagpant, cmb)
2832

ext/openssl/openssl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6901,7 +6901,8 @@ static void php_openssl_load_cipher_mode(struct php_openssl_cipher_mode *mode, c
69016901
int cipher_mode = EVP_CIPHER_mode(cipher_type);
69026902
memset(mode, 0, sizeof(struct php_openssl_cipher_mode));
69036903
switch (cipher_mode) {
6904-
#if PHP_OPENSSL_API_VERSION >= 0x10100
6904+
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
6905+
/* Note: While OpenSSL 1.1 supports OCB mode, LibreSSL does not support it. */
69056906
case EVP_CIPH_GCM_MODE:
69066907
case EVP_CIPH_OCB_MODE:
69076908
case EVP_CIPH_CCM_MODE:

0 commit comments

Comments
 (0)