xref: /PHP-7.4/ext/phar/tests/zip/zlib.phpt (revision 26dfce7f)
1--TEST--
2Phar: process zlib-compressed zip alias
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
6--FILE--
7<?php
8try {
9	$a = new Phar(__DIR__ . '/files/zlib_alias.phar.zip');
10	var_dump($a->getAlias());
11} catch (Exception $e) {
12	echo $e->getMessage() . "\n";
13}
14?>
15===DONE===
16--EXPECT--
17string(175) "hitheresuperlongzipistoostupidtodowhatIsaysoIhavetousethisridiculouslylongaliasbecauseitisstupiddidImentionthatalreadythemadnessdoesnotstopIhateinfozipIhateinfozipIhateinfozip"
18===DONE===
19