Skip to content

Commit e999544

Browse files
committed
Avoid priniting "array [long, string] of"
1 parent c2c90cf commit e999544

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/opcache/Optimizer/zend_dump.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ static void zend_dump_type_info(uint32_t info, zend_class_entry *ce, int is_inst
234234
if (first) first = 0; else fprintf(stderr, ", ");
235235
fprintf(stderr, "array");
236236
if ((info & MAY_BE_ARRAY_KEY_ANY) != 0 &&
237-
(info & MAY_BE_ARRAY_KEY_ANY) != MAY_BE_ARRAY_KEY_ANY) {
237+
((info & MAY_BE_ARRAY_KEY_LONG) == 0 ||
238+
(info & MAY_BE_ARRAY_KEY_STRING) == 0)) {
238239
int afirst = 1;
239240
fprintf(stderr, " [");
240241
if (info & MAY_BE_ARRAY_KEY_LONG) {

0 commit comments

Comments
 (0)