Error: "Constant CRYPT_RSA_MODE already defined"

It happens if defined(MATH_BIGINTEGER_OPENSSL_DISABLE) && !function_exists('openssl_pkey_get_details')