1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Commit Graph

14 Commits

Author SHA1 Message Date
Peter Kokot
1c850bfcca Sync leading and final newlines in source code files
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.

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-14 12:55:24 +02:00
Marcus Boerger
2e8b9c005b - Update to 2005 2005-02-08 19:10:06 +00:00
Marcus Boerger
e0196d11a4 - Do not autoload if require does the trick 2004-11-01 01:29:06 +00:00
Marcus Boerger
68c22fba72 - Documentation update
- Checkin doxygen config file
# A patched version of doxygen is needed, hopefully 1.3.8 will contain it
2004-05-10 17:26:03 +00:00
Marcus Boerger
ecf8650a36 Autoload class as long as needed 2004-04-30 19:01:06 +00:00
Marcus Boerger
5b755c40ea Fix several issues
- bugfix #27063
- bugfix #27929
- bugfix #28099
- bugfix #28125
# The amount of code is needed to solve the return by reference problem.
# dual_it and derived also need their own iterator handlers to be able
# to return by reference.
2004-04-25 11:14:11 +00:00
Marcus Boerger
afc15ffde9 Show classname 2003-12-13 14:40:06 +00:00
Marcus Boerger
3aa3f744f1 Update examples to new parameter handling 2003-12-08 08:28:18 +00:00
Marcus Boerger
8e188f9d03 Update examples 2003-12-06 19:03:17 +00:00
Marcus Boerger
f679b5c935 Update documentation 2003-12-04 19:39:46 +00:00
Marcus Boerger
3d9ec63384 Update examples 2003-11-22 20:51:15 +00:00
Marcus Boerger
43d4079590 update directory examples 2003-11-18 22:18:38 +00:00
Marcus Boerger
3bfa497254 WS 2003-11-17 00:56:15 +00:00
Marcus Boerger
159c538bcf Major update:
- Remove all overloading hooks -> array_read/array_access must be rewritten
- Remove all basic iterators
- Remove all 'spl_' prefixing exposed to user level
- Add RecursiveIterator, RecursiveIteratorIterator
- Add DirectoryIterator, DirectoryTreeIterator
- Add some examples
2003-11-09 14:05:36 +00:00