Skip to content

Commit 2ab4482

Browse files
committed
Fix some broken or unnecessary CLEAN sections
1 parent 400c605 commit 2ab4482

11 files changed

+1
-45
lines changed

ext/session/tests/session_save_path_variation5.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ var_dump(mkdir($sessions));
3030
var_dump(chdir($sessions));
3131
ini_set("session.save_path", $directory);
3232
var_dump(session_save_path());
33-
var_dump(rmdir($sessions));
3433

3534
echo "Done";
3635
ob_end_flush();
@@ -48,5 +47,4 @@ bool(true)
4847

4948
Warning: ini_set(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (.) in %s on line %d
5049
string(0) ""
51-
bool(true)
5250
Done

ext/soap/tests/bug73037.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,6 @@ cleanup:
127127
}
128128
}
129129

130-
?>
131-
--CLEAN--
132-
<?php
133-
unlink(__DIR__ . DIRECTORY_SEPARATOR . "bug73037_server.php");
134130
?>
135131
--EXPECT--
136132
Iteration 0

ext/sockets/tests/socket_getopt.phpt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@ $r = socket_getopt($s, $level, IP_MULTICAST_IF);
4141
var_dump($r);
4242
echo "\n";
4343
?>
44-
--CLEAN--
45-
<?php
46-
unset($domain);
47-
unset($level);
48-
socket_close($s);
49-
unset($s);
50-
unset($r");
51-
?>
5244
--EXPECT--
5345
Setting IP_MULTICAST_TTL
5446
bool(true)

ext/standard/tests/file/006_error.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ echo "\n";
2929

3030
echo "\n*** Done ***\n";
3131
?>
32-
--CLEAN--
33-
<?php
34-
unlink( __DIR__."/006_error.tmp");
35-
?>
3632
--EXPECTF--
3733
*** Testing error conditions for fileperms(), chmod() ***
3834

ext/standard/tests/file/fileinode_variation2.phpt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ foreach( $filenames as $filename ) {
3030
clearstatcache();
3131
}
3232
?>
33-
--CLEAN--
34-
<?php
35-
$file_path = __DIR__;
36-
unlink($file_path."/fileinode_variation2.tmp");
37-
?>
3833
--EXPECTF--
3934
*** Testing Invalid file types ***
4035

ext/standard/tests/file/fileowner_variation2.phpt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ foreach( $filenames as $filename ) {
3131
clearstatcache();
3232
}
3333
?>
34-
--CLEAN--
35-
<?php
36-
$file_path = __DIR__;
37-
unlink($file_path."/fileowner_variation2.tmp");
38-
?>
3934
--EXPECTF--
4035
*** Testing Invalid file types ***
4136

ext/standard/tests/file/fileperms_variation2.phpt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ foreach( $filenames as $filename ) {
3030
clearstatcache();
3131
}
3232
?>
33-
--CLEAN--
34-
<?php
35-
$file_path = __DIR__;
36-
unlink($file_path."/fileperms_variation2.tmp");
37-
?>
3833
--EXPECTF--
3934
*** Testing Invalid file types ***
4035

ext/standard/tests/file/ftruncate_bug76422.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ unlink($fn);
5151
--CLEAN--
5252
<?php
5353
$fn = __DIR__ . "/test76422";
54-
unlink($fn);
54+
@unlink($fn);
5555
?>
5656
--EXPECT--
5757
bool(true)

ext/standard/tests/file/readlink_variation1.phpt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ foreach( $filenames as $filename ) {
2929
clearstatcache();
3030
}
3131
?>
32-
--CLEAN--
33-
<?php
34-
$file_path = __DIR__;
35-
unlink($file_path."/readlink_variation2.tmp");
36-
?>
3732
--EXPECTF--
3833
*** Testing Invalid file types ***
3934

ext/standard/tests/file/windows_links/bug78862.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ Stack trace:
1414
thrown in %s on line %d
1515
--CLEAN--
1616
<?php
17-
unlink(__DIR__ . '/bug78862.target');
1817
unlink(__DIR__ . '/bug78862.link');
1918
?>

ext/standard/tests/streams/set_file_buffer.phpt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ var_dump(set_file_buffer($fd, 50));
3232
var_dump(stream_set_chunk_size($fd, 42));
3333
var_dump(fwrite($fd, str_repeat('0', 70)));
3434
?>
35-
--CLEAN--
36-
<?php
37-
fclose($fd);
38-
unset($fd);
39-
?>
4035
--EXPECTF--
4136
bool(true)
4237
option: %d, %d, %d

0 commit comments

Comments
 (0)