]> granicus.if.org Git - php/commitdiff
- #38255, fails on array as well
authorPierre Joye <pajoye@php.net>
Sat, 29 Jul 2006 22:39:52 +0000 (22:39 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 29 Jul 2006 22:39:52 +0000 (22:39 +0000)
ext/openssl/openssl.c

index 7fa5c40331711edbdc91e35495658470f0949529..b67aa7c8e44228094ee628dd79110e2e49a63188 100644 (file)
@@ -1824,7 +1824,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);