diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c old mode 100644 new mode 100755 index a6e4d03157d..3e60cd505b9 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -3014,7 +3014,7 @@ static int php_openssl_is_private_key(EVP_PKEY* pkey TSRMLS_DC) } break; #endif -#ifdef EVP_PKEY_EC +#if OPENSSL_VERSION_NUMBER >= 0x0090800fL && !defined(OPENSSL_NO_EC) && defined(EVP_PKEY_EC) case EVP_PKEY_EC: assert(pkey->pkey.ec != NULL);