From: Dmitry Stogov Date: Wed, 11 Jul 2007 07:26:52 +0000 (+0000) Subject: Fixed crash on non-string passphrase X-Git-Tag: php-5.2.4RC1~190 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2821378c331cbc189e7ea7d2bc35feee4eb97937;p=php Fixed crash on non-string passphrase --- diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index c6ee21dd6b..41294f979a 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -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); }