mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
24 lines
487 B
PHP
24 lines
487 B
PHP
--TEST--
|
|
PHP bug #74196: PharData->decompress() does not correctly support dot names
|
|
--EXTENSIONS--
|
|
phar
|
|
zlib
|
|
--INI--
|
|
phar.require_hash=0
|
|
phar.readonly=0
|
|
--FILE--
|
|
<?php
|
|
$fname = __DIR__ . '/' . 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)
|