mirror of
https://github.com/php/php-src.git
synced 2024-12-01 22:03:36 +08:00
- #38255, fails on array as well
This commit is contained in:
parent
9de24788d6
commit
47db124cda
@ -1836,7 +1836,8 @@ static EVP_PKEY * php_openssl_evp_from_zval(zval ** val, int public_key, char *
|
||||
return NULL;
|
||||
} else {
|
||||
/* force it to be a string and check if it refers to a file */
|
||||
if (Z_TYPE_PP(val) == IS_LONG || Z_TYPE_PP(val) == IS_BOOL) {
|
||||
if (Z_TYPE_PP(val) == IS_LONG || Z_TYPE_PP(val) == IS_BOOL
|
||||
|| Z_TYPE_PP(val) == IS_ARRAY) {
|
||||
return NULL;
|
||||
}
|
||||
convert_to_string_ex(val);
|
||||
|
Loading…
Reference in New Issue
Block a user