php-src/ext/zlib/tests
Peter Kokot f1d7e3ca0b Sync leading and final newlines in *.phpt sections
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:31:31 +02:00
..
001.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
002.phpt
003.phpt
004-mb.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
004.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
004.txt.gz
004私はガラスを食べられます.txt.gz Fixed the UTF-8 and long path support in the streams on Windows. 2016-06-20 12:45:39 +02:00
005.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
006.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
007.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
008.phpt
bug51269.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug55544-win.phpt make test more flexible to match different compressed strings 2017-03-22 11:08:37 +01:00
bug55544.phpt
bug60761.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug61139.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug61287.phpt
bug61443.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug61820.phpt
bug65391.phpt
bug67724.gz.gz
bug67724.phpt
bug73944_fixture1 Remove invalid check of dictionary content and add initialization of dictionary if raw compression used 2017-06-25 10:53:28 +02:00
bug73944_fixture2 Remove invalid check of dictionary content and add initialization of dictionary if raw compression used 2017-06-25 10:53:28 +02:00
bug73944.phpt Remove invalid check of dictionary content and add initialization of dictionary if raw compression used 2017-06-25 10:53:28 +02:00
bug74240.phpt Fixed bug #74240 (deflate_add can allocate too much memory) 2017-03-15 00:08:32 +01:00
bug75273.phpt Fix #75273: php_zlib_inflate_filter() may not update bytes_consumed 2018-09-08 19:01:36 +02:00
bug75299.phpt Fix Bug #75299 Wrong reflection on inflate_init and inflate_add 2017-10-01 11:27:16 +02:00
bug_34821.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug_40189.phpt
bug_52944_corrupted_data.inc
bug_52944.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
compress_zlib_wrapper.phpt
data.inc Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
deflate_add_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
deflate_add_block_v123.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
deflate_add_buffer_full.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
deflate_add_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
deflate_init_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
deflate_init_reuse.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
dictionary_usage.phpt
func.inc Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
gzclose_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzclose_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzcompress_basic1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzcompress_error1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzcompress_variation1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzdeflate_basic1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzdeflate_error1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzdeflate_variation1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzencode_basic1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzencode_error1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzencode_variation1-win32.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzencode_variation1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzencode_variation2-win32.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzencode_variation2.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzeof_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzeof_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzeof_variation1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzfile_basic2.phpt Remove the b prefix from literals on unrelated tests 2016-11-20 21:11:53 +01:00
gzfile_basic.phpt Remove the b prefix from literals on unrelated tests 2016-11-20 21:11:53 +01:00
gzfile_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzfile_variation1.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzfile_variation2.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzfile_variation3.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzfile_variation4.phpt
gzfile_variation5.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzfile_variation6.phpt
gzfile_variation7.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzfile_variation8.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzfile_variation9.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzfile_variation10.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzfile_variation11.phpt
gzfile_variation12.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzfile_variation13.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzfile_variation14.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzfile_variation15.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzfilegzreadfile.phpt fix test portability 2016-06-13 15:47:08 +02:00
gzgetc_basic_1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzgetc_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzgetc_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzgets_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzgets_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzgetss.gz
gzgetss.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzgetss.test
gzinflate_error1.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzinflate_length.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzinflate-bug42663.phpt
gzopen_basic2.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzopen_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzopen_error.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzopen_include_path.inc Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
gzopen_variation1.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzopen_variation2.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzopen_variation3.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzopen_variation4.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzopen_variation5.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzopen_variation6.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzopen_variation7.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzopen_variation8.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzopen_variation9.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzpassthru_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzpassthru_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzputs_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzread_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzread_error2.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzread_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzread_variation1.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzreadgzwrite.phpt Remove the b prefix from literals on unrelated tests 2016-11-20 21:11:53 +01:00
gzreadgzwriteplain.phpt Remove the b prefix from literals on unrelated tests 2016-11-20 21:11:53 +01:00
gzrewind_basic2.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzrewind_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzrewind_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzrewind_variation1.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzseek_basic2.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzseek_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzseek_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzseek_variation1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzseek_variation2.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzseek_variation3.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzseek_variation4.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzseek_variation5.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzseek_variation6.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzseek_variation7.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gztell_basic2.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gztell_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gztell_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzuncompress_basic1.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzuncompress_error1.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
gzwrite_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzwrite_error2.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzwrite_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
gzwrite_variation1.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
inflate_add_basic.phpt
inflate_add_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
inflate_get_read_len.phpt Revert "Add more constants, improve comments, and add tests" 2017-07-10 16:53:56 +02:00
inflate_get_status.phpt Revert "Add more constants, improve comments, and add tests" 2017-07-10 16:53:56 +02:00
inflate_init_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
inflate_init_reuse.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
ob_001.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
ob_002.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
ob_003.phpt make test more flexible to match different compressed strings 2017-03-22 11:08:37 +01:00
ob_004.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
ob_005.phpt
ob_gzhandler_legacy_002.phpt
readgzfile_basic2.phpt Remove the b prefix from literals on unrelated tests 2016-11-20 21:11:53 +01:00
readgzfile_basic.phpt Remove the b prefix from literals on unrelated tests 2016-11-20 21:11:53 +01:00
readgzfile_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
readgzfile_variation1.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
readgzfile_variation2.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
readgzfile_variation3.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
readgzfile_variation4.phpt
readgzfile_variation5.phpt
readgzfile_variation6.phpt
readgzfile_variation7.phpt
readgzfile_variation8.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
readgzfile_variation9.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
readgzfile_variation10.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
readgzfile_variation11.phpt
readgzfile_variation12.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
readgzfile_variation13.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
readgzfile_variation14.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
readgzfile_variation15.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
reading_include_path.inc Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
zlib_filter_deflate2.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
zlib_filter_deflate.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
zlib_filter_inflate2.phpt Remove the b prefix from literals on unrelated tests 2016-11-20 21:11:53 +01:00
zlib_filter_inflate.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
zlib_scheme_copy_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_scheme_copy_variation1.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_scheme_copy_variation2.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_scheme_dir_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_scheme_file_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_scheme_file_get_contents_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_scheme_file_put_contents_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_scheme_file_read_file_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_scheme_fopen_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_scheme_fopen_variation1.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_scheme_rename_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_scheme_stat_basic2.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_scheme_stat_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_scheme_unlink_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_wrapper_fflush_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_wrapper_flock_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_wrapper_fstat_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_wrapper_ftruncate_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
zlib_wrapper_meta_data_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00