From df39586a882f99c1a3082535c8cb90c562adcce5 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Mon, 21 Apr 2025 14:47:52 +0100 Subject: [PATCH] ext/zlib: gzfile() files list as packed array (#18380) --- ext/zlib/zlib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 0c5486846c1..f47d879295c 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -631,6 +631,7 @@ PHP_FUNCTION(gzfile) /* Initialize return array */ array_init(return_value); + zend_hash_real_init_packed(Z_ARRVAL_P(return_value)); /* Now loop through the file and do the magic quotes thing if needed */ memset(buf, 0, sizeof(buf));