mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
39131219e8
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
24 lines
444 B
PHP
24 lines
444 B
PHP
--TEST--
|
|
Bug #70019 Files extracted from archive may be placed outside of destination directory
|
|
--EXTENSIONS--
|
|
phar
|
|
zlib
|
|
--FILE--
|
|
<?php
|
|
$dir = __DIR__."/bug70019";
|
|
$phar = new PharData(__DIR__."/bug70019.zip");
|
|
if(!is_dir($dir)) {
|
|
mkdir($dir);
|
|
}
|
|
$phar->extractTo($dir);
|
|
var_dump(file_exists("$dir/ThisIsATestFile.txt"));
|
|
?>
|
|
--CLEAN--
|
|
<?php
|
|
$dir = __DIR__."/bug70019";
|
|
unlink("$dir/ThisIsATestFile.txt");
|
|
rmdir($dir);
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|