From: Dmitry Stogov Date: Tue, 25 Aug 2020 18:38:23 +0000 (+0300) Subject: Avoid priniting "array [long, string] of" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e99954492e319fd3e09b7376767273fbc50aa05b;p=php Avoid priniting "array [long, string] of" --- diff --git a/ext/opcache/Optimizer/zend_dump.c b/ext/opcache/Optimizer/zend_dump.c index 51dcc2076c..f6d9bd519a 100644 --- a/ext/opcache/Optimizer/zend_dump.c +++ b/ext/opcache/Optimizer/zend_dump.c @@ -234,7 +234,8 @@ static void zend_dump_type_info(uint32_t info, zend_class_entry *ce, int is_inst if (first) first = 0; else fprintf(stderr, ", "); fprintf(stderr, "array"); if ((info & MAY_BE_ARRAY_KEY_ANY) != 0 && - (info & MAY_BE_ARRAY_KEY_ANY) != MAY_BE_ARRAY_KEY_ANY) { + ((info & MAY_BE_ARRAY_KEY_LONG) == 0 || + (info & MAY_BE_ARRAY_KEY_STRING) == 0)) { int afirst = 1; fprintf(stderr, " ["); if (info & MAY_BE_ARRAY_KEY_LONG) {