Fix some more CLEAN sections

This commit is contained in:
Nikita Popov 2021-09-03 11:07:16 +02:00
parent 2ab4482d34
commit 7a411564f0
8 changed files with 4 additions and 19 deletions

View File

@ -39,16 +39,11 @@ array_walk($trace, 'search_trace_file');
var_dump($found > 0);
var_dump(file_exists($tracefile));
@unlink($tracefile);
?>
--CLEAN--
<?php
$tracefile = __DIR__ . '/trace.tmp';
unlink($tracefile);
?>
--EXPECTF--
bool(false)

View File

@ -40,8 +40,6 @@ echo $a->getAlias() . "\n";
--CLEAN--
<?php
unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar');
unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phartmp.tar');
__HALT_COMPILER();
?>
--EXPECT--
hio

View File

@ -42,8 +42,6 @@ try {
--CLEAN--
<?php
unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.tar');
unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phartmp.tar');
__HALT_COMPILER();
?>
--EXPECTF--
hio

View File

@ -30,11 +30,6 @@ foreach( $filenames as $filename ) {
clearstatcache();
}
?>
--CLEAN--
<?php
$file_path = __DIR__;
unlink($file_path."/filegroup_variation2.tmp");
?>
--EXPECTF--
*** Testing Invalid file types ***

View File

@ -41,7 +41,6 @@ echo "Done\n";
?>
--CLEAN--
<?php
unlink(__DIR__."/rename_basic_new2.tmp");
rmdir(__DIR__."/rename_basic_dir1");
?>
--EXPECTF--

View File

@ -3,7 +3,7 @@ stream_copy_to_stream() from empty file
--FILE--
<?php
$tmp_empty_file = __FILE__ . ".tmp";
$tmp_empty_file = __DIR__ . "/stream_copy_to_stream_empty.tmp";
file_put_contents($tmp_empty_file, "");
$in = fopen($tmp_empty_file, 'r');
@ -13,7 +13,7 @@ var_dump(stream_copy_to_stream($in, $out));
?>
--CLEAN--
<?php
unlink(__FILE__ . ".tmp");
unlink(__DIR__ . "/stream_copy_to_stream_empty.tmp");
?>
--EXPECT--
int(0)

View File

@ -14,5 +14,5 @@ Stack trace:
thrown in %s on line %d
--CLEAN--
<?php
unlink(__DIR__ . '/bug78862.link');
unlink(__DIR__ . '/bug78862.target');
?>

View File

@ -20,7 +20,7 @@ $arch->close();
?>
--CLEAN--
<?php
unlink($dirname.'foo.zip');
unlink(__DIR__.'/foo.zip');
?>
--EXPECT--
string(8) "No error"