1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 23:48:14 +02:00
Commit Graph

16 Commits

Author SHA1 Message Date
Máté Kocsis bb6f374048 Improve argument error messages in ext/standard
Closes GH-5198
2020-03-18 19:56:10 +01:00
Nikita Popov f8d795820e Reindent phpt files 2020-02-03 22:52:20 +01:00
Máté Kocsis 6f9248359e Throw an exception when an invalid comparison operator is passed to version_compare() 2019-12-09 19:44:01 +01:00
Peter Kokot b8caba92e2 Remove empty section 2019-05-07 04:26:03 +02:00
David Stockton e1dd8cd678 Add test for null return on version_compare with bad operator 2019-02-09 02:52:17 +01:00
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
Peter Kokot d7a3edd45d Trim trailing whitespace in *.phpt 2018-10-14 19:46:15 +02:00
Gabriel Caruso 9a4cc52c23 Remove superfluous PHP version check in tests
Also remove tests that target only old PHP versions.
2018-02-04 16:58:54 +01:00
Nikita Popov 5af586bec5 Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
Florian MARGAINE e338e26ab7 Adds phpversion test to prevent #67959 2014-09-04 20:13:43 +02:00
Sebastian Schürmann 7942cd2c3c - Initial commit 2009-04-25 11:33:26 +00:00
Arnaud Le Blanc a772d7c3ef MFH 2009-04-24 19:48:41 +00:00
Ilia Alshanetsky 0e59140380 MFB: Added test for php_sapi_name() 2009-04-09 13:29:01 +00:00
Zoe Slattery 9dfb01d3b1 adding check for rc1 to version-compare test 2007-08-24 14:47:50 +00:00
Stig Bakken 925ff7f2b2 * remove version_{lt,le,gt,ge,eq} functions, added a third optional
parameter to version_compare doing the same thing
2001-10-11 10:35:59 +00:00
Stig Bakken 89bd184ea0 @Added version_compare() function (Stig) 2001-10-06 23:22:37 +00:00