xref: /PHP-8.0/ext/phar/tests/zip/zlib.phpt (revision 9f96b2bd)
1--TEST--
2Phar: process zlib-compressed zip alias
3--INI--
4phar.require_hash=0
5--SKIPIF--
6<?php if (!extension_loaded("phar")) die("skip"); ?>
7<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
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