mirror of
https://github.com/php/php-src.git
synced 2026-04-17 21:11:02 +02:00
19 lines
583 B
PHP
19 lines
583 B
PHP
--TEST--
|
|
Phar: process zlib-compressed zip alias
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
|
<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
$a = new Phar(dirname(__FILE__) . '/files/zlib_alias.phar.zip');
|
|
var_dump($a->getAlias());
|
|
} catch (Exception $e) {
|
|
echo $e->getMessage() . "\n";
|
|
}
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
string(175) "hitheresuperlongzipistoostupidtodowhatIsaysoIhavetousethisridiculouslylongaliasbecauseitisstupiddidImentionthatalreadythemadnessdoesnotstopIhateinfozipIhateinfozipIhateinfozip"
|
|
===DONE===
|