summaryrefslogtreecommitdiff
path: root/ext/phar/tests/bug74196.phpt
blob: 4cd238d6547435b34d40d460abb9cde13d2e2c73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
PHP bug #74196: PharData->decompress() does not correctly support dot names
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
<?php if (!extension_loaded("zlib")) die("skip"); ?>
--INI--
phar.require_hash=0
phar.readonly=0
--FILE--
<?php
$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.1.2.3.phar.tar.gz';
$decompressed_name = str_replace( ".gz", "",  $fname);
var_dump(file_exists($fname));

$phar = new Phar($fname);
$phar->decompress();
var_dump(file_exists($decompressed_name));
unlink($decompressed_name);

?>
--EXPECT--
bool(true)
bool(true)