Skip to content

Commit df39586

Browse files
authored
ext/zlib: gzfile() files list as packed array (php#18380)
1 parent 0c2025c commit df39586

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/zlib/zlib.c

+1
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ PHP_FUNCTION(gzfile)
631631

632632
/* Initialize return array */
633633
array_init(return_value);
634+
zend_hash_real_init_packed(Z_ARRVAL_P(return_value));
634635

635636
/* Now loop through the file and do the magic quotes thing if needed */
636637
memset(buf, 0, sizeof(buf));

0 commit comments

Comments
 (0)