Skip to content

Commit 8f66b67

Browse files
committed
Fix compilation for PHP 8.1
Accidentally introduced in 175ff60. arData was not part of an anonymous union.
1 parent 975d28e commit 8f66b67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ ZEND_API const HashTable zend_empty_array = {
240240
.gc.u.type_info = IS_ARRAY | (GC_IMMUTABLE << GC_FLAGS_SHIFT),
241241
.u.flags = HASH_FLAG_UNINITIALIZED,
242242
.nTableMask = HT_MIN_MASK,
243-
{.arData = (Bucket*)&uninitialized_bucket[2]},
243+
.arData = (Bucket*)&uninitialized_bucket[2],
244244
.nNumUsed = 0,
245245
.nNumOfElements = 0,
246246
.nTableSize = HT_MIN_SIZE,

0 commit comments

Comments
 (0)