Skip to content

Commit

Permalink
avoid BORKED CLEAN warnings since destructor normally removes the files
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnazg committed Jan 28, 2024
1 parent d3a1041 commit d663662
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/evil_symlink_win.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ echo 'tests done';
?>
--CLEAN--
<?php
unlink(dirname(__FILE__) . '/evil_symlink_win/evil.txt');
@unlink(dirname(__FILE__) . '/evil_symlink_win/evil.txt');
rmdir(dirname(__FILE__) . '/evil_symlink_win');
?>
--EXPECT--
Expand Down
2 changes: 1 addition & 1 deletion tests/out_of_path_relative.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ echo 'tests done';
--CLEAN--
<?php
unlink(dirname(__FILE__) . '/one/two/secret.txt');
unlink(dirname(__FILE__) . '/one/two/three/four/five/six/evil.txt');
@unlink(dirname(__FILE__) . '/one/two/three/four/five/six/evil.txt');
rmdir(dirname(__FILE__) . '/one/two/three/four/five/six');
rmdir(dirname(__FILE__) . '/one/two/three/four/five');
rmdir(dirname(__FILE__) . '/one/two/three/four');
Expand Down

0 comments on commit d663662

Please sign in to comment.