From 47db124cda3416fca63f55cf9b59fc3dd99c4436 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Sat, 29 Jul 2006 22:39:34 +0000 Subject: [PATCH] - #38255, fails on array as well --- ext/openssl/openssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 4d0a869a92..95d802f61a 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -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); -- 2.50.1