1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 05:51:02 +02:00
Commit Graph

11 Commits

Author SHA1 Message Date
Peter Kokot
b746e69887 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:32:30 +02:00
Stanislav Malyshev
3616b6b935 Cleanup some tests - remove unnecessary sections
Also unify credits - all are under --CREDITS-- now.
2018-02-04 02:21:40 -08:00
Nikita Popov
2df9346e7f Deprecate mb_parse_str() without second argument 2017-02-03 18:52:57 +01:00
Rui Hirokawa
01bb437b85 fixed test case failures. 2011-09-11 12:12:24 +00:00
Rui Hirokawa
efd8563777 revert previous commit. 2011-09-11 03:57:31 +00:00
Rui Hirokawa
e7fa9ffc21 removed test script which depends on the removed register_globals. 2011-09-11 02:16:34 +00:00
Scott MacVicar
0413cf5b48 XFAIL these for the moment, Kalle totally broke these in 298241
when removing register_globals
2011-02-03 17:07:48 +00:00
Moriyoshi Koizumi
85d7751097 - Fix include_path. 2008-07-17 16:30:32 +00:00
Moriyoshi Koizumi
a705a8b597 Clean up. 2002-10-30 08:06:52 +00:00
Moriyoshi Koizumi
eef8649fa4 Capitalized the title string 2002-10-27 03:07:05 +00:00
Moriyoshi Koizumi
16315a9a22 Added a test case for bug #20087 2002-10-25 21:29:14 +00:00