xref: /PHP-8.4/ext/phar/tests/zip/zlib.phpt (revision 74859783)
1--TEST--
2Phar: process zlib-compressed zip alias
3--INI--
4phar.require_hash=0
5--EXTENSIONS--
6phar
7zlib
8--FILE--
9<?php
10try {
11    $a = new Phar(__DIR__ . '/files/zlib_alias.phar.zip');
12    var_dump($a->getAlias());
13} catch (Exception $e) {
14    echo $e->getMessage() . "\n";
15}
16?>
17--EXPECT--
18string(175) "hitheresuperlongzipistoostupidtodowhatIsaysoIhavetousethisridiculouslylongaliasbecauseitisstupiddidImentionthatalreadythemadnessdoesnotstopIhateinfozipIhateinfozipIhateinfozip"
19