mirror of
https://github.com/php/php-src.git
synced 2024-11-30 21:35:36 +08:00
Fix some more CLEAN sections
This commit is contained in:
parent
2ab4482d34
commit
7a411564f0
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 ***
|
||||
|
||||
|
@ -41,7 +41,6 @@ echo "Done\n";
|
||||
?>
|
||||
--CLEAN--
|
||||
<?php
|
||||
unlink(__DIR__."/rename_basic_new2.tmp");
|
||||
rmdir(__DIR__."/rename_basic_dir1");
|
||||
?>
|
||||
--EXPECTF--
|
||||
|
@ -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)
|
||||
|
@ -14,5 +14,5 @@ Stack trace:
|
||||
thrown in %s on line %d
|
||||
--CLEAN--
|
||||
<?php
|
||||
unlink(__DIR__ . '/bug78862.link');
|
||||
unlink(__DIR__ . '/bug78862.target');
|
||||
?>
|
||||
|
@ -20,7 +20,7 @@ $arch->close();
|
||||
?>
|
||||
--CLEAN--
|
||||
<?php
|
||||
unlink($dirname.'foo.zip');
|
||||
unlink(__DIR__.'/foo.zip');
|
||||
?>
|
||||
--EXPECT--
|
||||
string(8) "No error"
|
||||
|
Loading…
Reference in New Issue
Block a user