With php 8.2.3 opening or creating a tar.gz file fails with
PHP Fatal error: Allowed memory size of 20971520 bytes exhausted
Call to method
$archive->compress(Phar::GZ);
and
$archive=new PharData($archive_name);
fail when working with gz or bz2, but reason unknown.
It works with php 8.1.
Workaround in current main update.php: do compress and uncompress more manually.
Still unresolved on php 8.2.4, same error.
memory_limit in PHP is too low.. Increase memory_limit setting and it should work fine.