mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix file name clash in phar test
This commit is contained in:
@@ -11,8 +11,8 @@ phar.readonly=0
|
||||
<?php
|
||||
|
||||
$fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
|
||||
$fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '2.phar.zip';
|
||||
$fname3 = __DIR__ . '/' . basename(__FILE__, '.php') . '3.phar.zip';
|
||||
$fname2 = __DIR__ . '/' . basename(__FILE__, '.php') . '.2.phar.zip';
|
||||
$fname3 = __DIR__ . '/' . basename(__FILE__, '.php') . '.3.phar.zip';
|
||||
|
||||
$phar = new Phar($fname);
|
||||
$phar->setStub('<?php echo "first stub\n"; __HALT_COMPILER(); ?>');
|
||||
@@ -49,9 +49,8 @@ echo $p3->getAlias(), "\n";
|
||||
--CLEAN--
|
||||
<?php
|
||||
unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
|
||||
unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '2.phar.zip');
|
||||
unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '3.phar.zip');
|
||||
__HALT_COMPILER();
|
||||
unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.zip');
|
||||
unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.3.phar.zip');
|
||||
?>
|
||||
--EXPECT--
|
||||
hio
|
||||
|
||||
Reference in New Issue
Block a user