1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 08:58:28 +02:00
Commit Graph

19 Commits

Author SHA1 Message Date
Peter Kokot d679f02295 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:33:09 +02:00
Andrea Faulds db76b708cf Deprecate PHP 4 constructors 2015-03-31 17:55:27 +02:00
Yasuo Ohgaki 25e8fcc88f Strict session 2013-08-04 16:36:45 -07:00
Kalle Sommer Nielsen 3f29144348 Removed session_is_registered(), session_register() and session_unregister().
-- They are no longer needed without register_globals
2010-04-21 23:03:16 +00:00
Kalle Sommer Nielsen febee11285 Removed register_globals 2010-04-21 01:27:22 +00:00
Dmitry Stogov 7bfe056174 Fixed tests 2009-09-21 09:52:19 +00:00
Felipe Pena d64db73483 - Fixed tests 2009-05-05 18:19:16 +00:00
Kalle Sommer Nielsen 5a6d3cc42b Added E_DEPRECATED startup notice (5.3 only) 2009-05-04 21:18:22 +00:00
Hannes Magnusson 76a17847c1 Deprecate session_register(), session_unregister() and
session_is_registered() (removed in HEAD)
2008-12-09 14:03:58 +00:00
foobar 73dd4043b3 Make sure files-save handler is used always 2005-07-04 13:09:14 +00:00
Stanislav Malyshev 8487383ede fix test - remove warning 2004-02-05 09:03:37 +00:00
Marcus Boerger 45277ec5d7 Preserve casing 2003-12-22 23:17:17 +00:00
Marcus Boerger c3fddcab62 Fix tests for E_STRICT and check for E_STRICT in run-tests.php. 2003-11-30 13:57:20 +00:00
Sascha Schumann f25ff93cc6 MFB 2003-06-13 09:19:52 +00:00
foobar 9706fcd17f Fix the test. (second session init call produces a notice) 2003-06-13 09:15:56 +00:00
Marcus Boerger d1c19eb5a1 Fix tests 2003-05-31 13:10:00 +00:00
Ilia Alshanetsky 9497ba9d49 MFH (test failure if session.serialize_handler is not set to php). 2002-11-25 23:20:05 +00:00
Sascha Schumann fb84b3e1d0 remove trans_sid=1 2002-10-03 23:13:36 +00:00
Sascha Schumann 47cc29c9d1 19: serializing references test case using globals
18: rewriter correctly handles attribute names which contain dashes
2002-10-03 22:54:15 +00:00