mirror of
https://github.com/php/php-src.git
synced 2026-03-26 17:22:15 +01:00
Fixed crash on non-string passphrase
This commit is contained in:
@@ -2256,6 +2256,7 @@ static EVP_PKEY * php_openssl_evp_from_zval(zval ** val, int public_key, char *
|
||||
} else {
|
||||
tmp = **zphrase;
|
||||
zval_copy_ctor(&tmp);
|
||||
convert_to_string(&tmp);
|
||||
passphrase = Z_STRVAL(tmp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user