From 5856fadb64032e0cab0dcfcd676ac2702066fcdd Mon Sep 17 00:00:00 2001 From: David Carlier Date: Mon, 21 Apr 2025 13:57:25 +0100 Subject: [PATCH] ext/zlib: gzfile() files list as packed array --- ext/zlib/zlib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 0c5486846c12c..f47d879295ced 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));