php-src/ext/standard
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
..
html_tables Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
tests Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
array.c Merge branch 'PHP-7.1' into PHP-7.2 2018-09-18 20:50:37 +02:00
assert.c Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
base64.c year++ 2018-01-02 12:55:14 +08:00
base64.h year++ 2018-01-02 12:55:14 +08:00
basic_functions.c Merge branch 'PHP-7.1' into PHP-7.2 2018-04-13 15:28:47 +02:00
basic_functions.h year++ 2018-01-02 12:55:14 +08:00
browscap.c Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
config.m4 Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
config.w32 Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
crc32.c year++ 2018-01-02 12:55:14 +08:00
crc32.h year++ 2018-01-02 12:55:14 +08:00
credits_ext.h Merge branch 'PHP-7.1' into PHP-7.2 2017-10-11 22:25:27 +02:00
credits_sapi.h
credits.c year++ 2018-01-02 12:55:14 +08:00
credits.h year++ 2018-01-02 12:55:14 +08:00
crypt_blowfish.c Bug #73058 crypt broken when salt is 'too' long 2016-09-10 02:39:28 +02:00
crypt_blowfish.h
crypt_freesec.c Fixed compilation warnings 2016-06-23 12:47:06 +03:00
crypt_freesec.h Fixed condition check 2017-04-10 14:47:24 +08:00
crypt_sha256.c Fixed condition check 2017-04-10 14:47:24 +08:00
crypt_sha512.c Fixed condition check 2017-04-10 14:47:24 +08:00
crypt.c year++ 2018-01-02 12:55:14 +08:00
css.c year++ 2018-01-02 12:55:14 +08:00
css.h year++ 2018-01-02 12:55:14 +08:00
cyr_convert.c year++ 2018-01-02 12:55:14 +08:00
cyr_convert.h Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
datetime.c year++ 2018-01-02 12:55:14 +08:00
datetime.h year++ 2018-01-02 12:55:14 +08:00
dir.c year++ 2018-01-02 12:55:14 +08:00
dl.c Ensure there are no line breaks in the error msg 2018-02-01 15:30:01 +01:00
dl.h year++ 2018-01-02 12:55:14 +08:00
dns_win32.c year++ 2018-01-02 12:55:14 +08:00
dns.c Merge branch 'PHP-7.1' into PHP-7.2 2018-02-05 09:08:12 +01:00
exec.c Use literal as format 2018-03-12 16:00:24 +01:00
exec.h year++ 2018-01-02 12:55:14 +08:00
file.c year++ 2018-01-02 12:55:14 +08:00
file.h Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
filestat.c year++ 2018-01-02 12:55:14 +08:00
filters.c Merge branch 'PHP-7.1' into PHP-7.2 2018-07-05 19:11:25 +02:00
flock_compat.c year++ 2018-01-02 12:55:14 +08:00
flock_compat.h year++ 2018-01-02 12:55:14 +08:00
formatted_print.c year++ 2018-01-02 12:55:14 +08:00
fsock.c year++ 2018-01-02 12:55:14 +08:00
fsock.h year++ 2018-01-02 12:55:14 +08:00
ftok.c year++ 2018-01-02 12:55:14 +08:00
ftp_fopen_wrapper.c Merge branch 'PHP-7.1' into PHP-7.2 2018-09-04 04:55:15 +02:00
head.c year++ 2018-01-02 12:55:14 +08:00
head.h year++ 2018-01-02 12:55:14 +08:00
html_tables.h year++ 2018-01-02 12:55:14 +08:00
html.c Merge branch 'PHP-7.1' into PHP-7.2 2018-07-15 23:19:37 +02:00
html.h year++ 2018-01-02 12:55:14 +08:00
http_fopen_wrapper.c Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
http.c Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
image.c Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
incomplete_class.c year++ 2018-01-02 12:55:14 +08:00
info.c Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
info.h Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
iptc.c year++ 2018-01-02 12:55:14 +08:00
lcg.c year++ 2018-01-02 12:55:14 +08:00
levenshtein.c year++ 2018-01-02 12:55:14 +08:00
link_win32.c Merge branch 'PHP-7.0' into PHP-7.1 2018-07-16 16:52:36 -07:00
link.c year++ 2018-01-02 12:55:14 +08:00
mail.c Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
Makefile.frag Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
Makefile.frag.w32 Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
math.c year++ 2018-01-02 12:55:14 +08:00
md5.c year++ 2018-01-02 12:55:14 +08:00
md5.h year++ 2018-01-02 12:55:14 +08:00
metaphone.c year++ 2018-01-02 12:55:14 +08:00
microtime.c year++ 2018-01-02 12:55:14 +08:00
microtime.h year++ 2018-01-02 12:55:14 +08:00
mt_rand.c Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
pack.c Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
pack.h year++ 2018-01-02 12:55:14 +08:00
pageinfo.c year++ 2018-01-02 12:55:14 +08:00
pageinfo.h year++ 2018-01-02 12:55:14 +08:00
password.c Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
php_array.h year++ 2018-01-02 12:55:14 +08:00
php_assert.h year++ 2018-01-02 12:55:14 +08:00
php_browscap.h year++ 2018-01-02 12:55:14 +08:00
php_crypt_r.c Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
php_crypt_r.h year++ 2018-01-02 12:55:14 +08:00
php_crypt.h year++ 2018-01-02 12:55:14 +08:00
php_dir.h year++ 2018-01-02 12:55:14 +08:00
php_dns.h year++ 2018-01-02 12:55:14 +08:00
php_ext_syslog.h year++ 2018-01-02 12:55:14 +08:00
php_filestat.h year++ 2018-01-02 12:55:14 +08:00
php_fopen_wrapper.c year++ 2018-01-02 12:55:14 +08:00
php_fopen_wrappers.h year++ 2018-01-02 12:55:14 +08:00
php_ftok.h year++ 2018-01-02 12:55:14 +08:00
php_http.h Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
php_image.h year++ 2018-01-02 12:55:14 +08:00
php_incomplete_class.h year++ 2018-01-02 12:55:14 +08:00
php_iptc.h year++ 2018-01-02 12:55:14 +08:00
php_lcg.h year++ 2018-01-02 12:55:14 +08:00
php_link.h year++ 2018-01-02 12:55:14 +08:00
php_mail.h year++ 2018-01-02 12:55:14 +08:00
php_math.h Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
php_metaphone.h year++ 2018-01-02 12:55:14 +08:00
php_mt_rand.h Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
php_password.h year++ 2018-01-02 12:55:14 +08:00
php_rand.h year++ 2018-01-02 12:55:14 +08:00
php_random.h year++ 2018-01-02 12:55:14 +08:00
php_smart_string_public.h Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
php_smart_string.h Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
php_standard.h year++ 2018-01-02 12:55:14 +08:00
php_string.h Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
php_type.h year++ 2018-01-02 12:55:14 +08:00
php_uuencode.h year++ 2018-01-02 12:55:14 +08:00
php_var.h year++ 2018-01-02 12:55:14 +08:00
php_versioning.h Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
proc_open.c year++ 2018-01-02 12:55:14 +08:00
proc_open.h Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
quot_print.c year++ 2018-01-02 12:55:14 +08:00
quot_print.h year++ 2018-01-02 12:55:14 +08:00
rand.c year++ 2018-01-02 12:55:14 +08:00
random.c year++ 2018-01-02 12:55:14 +08:00
scanf.c year++ 2018-01-02 12:55:14 +08:00
scanf.h year++ 2018-01-02 12:55:14 +08:00
sha1.c year++ 2018-01-02 12:55:14 +08:00
sha1.h year++ 2018-01-02 12:55:14 +08:00
soundex.c year++ 2018-01-02 12:55:14 +08:00
streamsfuncs.c Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
streamsfuncs.h Sync leading and final newlines in source code files 2018-10-14 12:54:08 +02:00
string.c Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
strnatcmp.c Drop some pieces of commented-out code 2016-09-04 12:56:06 +02:00
syslog.c Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
type.c Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
uniqid.c year++ 2018-01-02 12:55:14 +08:00
uniqid.h year++ 2018-01-02 12:55:14 +08:00
url_scanner_ex.c Merge branch 'PHP-7.1' into PHP-7.2 2018-07-24 12:28:22 +02:00
url_scanner_ex.h year++ 2018-01-02 12:55:14 +08:00
url_scanner_ex.re Fix #76643: Segmentation fault when using output_add_rewrite_var 2018-07-24 12:20:13 +02:00
url.c year++ 2018-01-02 12:55:14 +08:00
url.h year++ 2018-01-02 12:55:14 +08:00
user_filters.c year++ 2018-01-02 12:55:14 +08:00
uuencode.c year++ 2018-01-02 12:55:14 +08:00
var_unserializer.c Merge branch 'PHP-7.1' into PHP-7.2 2018-07-02 17:29:32 +02:00
var_unserializer.re Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
var.c year++ 2018-01-02 12:55:14 +08:00
versioning.c year++ 2018-01-02 12:55:14 +08:00
winver.h Merge branch 'PHP-5.6' 2015-06-18 22:05:07 +02:00