ext/zlib: gzfile() files list as packed array (#18380)

This commit is contained in:
David CARLIER 2025-04-21 14:47:52 +01:00 committed by GitHub
parent 0c2025cdc4
commit df39586a88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -631,6 +631,7 @@ PHP_FUNCTION(gzfile)
/* Initialize return array */ /* Initialize return array */
array_init(return_value); 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 */ /* Now loop through the file and do the magic quotes thing if needed */
memset(buf, 0, sizeof(buf)); memset(buf, 0, sizeof(buf));