diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 15:37:22 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 19:43:12 +0200 |
commit | 7af945e271d042a4991c9510f78b6ff7ac43ac34 (patch) | |
tree | 31d3b7a69f017cd532c5fe31ce1664d426384f82 /ext/standard/tests/file/ftruncate_variation2.phpt | |
parent | afd534f1634e9a5d631afac39a9c9b09b1ba8b33 (diff) | |
download | php-git-7af945e271d042a4991c9510f78b6ff7ac43ac34.tar.gz |
Trim trailing whitespace in *.phpt
Diffstat (limited to 'ext/standard/tests/file/ftruncate_variation2.phpt')
-rw-r--r-- | ext/standard/tests/file/ftruncate_variation2.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/tests/file/ftruncate_variation2.phpt b/ext/standard/tests/file/ftruncate_variation2.phpt index e01a167a38..821ed151bd 100644 --- a/ext/standard/tests/file/ftruncate_variation2.phpt +++ b/ext/standard/tests/file/ftruncate_variation2.phpt @@ -19,7 +19,7 @@ include ("file.inc"); echo "*** Testing ftruncate() : usage variations ***\n"; /* test ftruncate with file opened in different modes */ -$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t", +$file_modes = array("r", "rb", "rt", "r+", "r+b", "r+t", "w", "wb", "wt", "w+", "w+b", "w+t", "x", "xb", "xt", "x+", "x+b", "x+t", "a", "ab", "at", "a+", "a+b", "a+t"); @@ -31,7 +31,7 @@ foreach($file_content_types as $file_content_type) { for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) { echo "-- Testing ftruncate() with file opening using $file_modes[$mode_counter] mode --\n"; - + // create 1 file with some contents $filename = dirname(__FILE__)."/ftruncate_variation2.tmp"; if( strstr($file_modes[$mode_counter], "x") || strstr($file_modes[$mode_counter], "w") ) { @@ -44,7 +44,7 @@ foreach($file_content_types as $file_content_type) { $file_handle = fopen($filename, $file_modes[$mode_counter]); } if (!$file_handle) { - echo "Error: failed to open file $filename!\n"; + echo "Error: failed to open file $filename!\n"; exit(); } |