php-src/ext/json/tests
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
..
001.phpt Use empty keys instead of _empty_ in json decoding 2016-06-20 19:44:00 +01:00
002.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
003.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
004.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
005.phpt
006.phpt Use the same CS for all json tests 2015-11-15 19:06:09 +00:00
007.phpt Use the same CS for all json tests 2015-11-15 19:06:09 +00:00
008.phpt
bug40503.phpt Use seialize_precision instead of precision in all json tests 2017-12-30 17:34:01 +00:00
bug41034.phpt Use the same CS for all json tests 2015-11-15 19:06:09 +00:00
bug41067.phpt
bug41403.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug41504.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug41567.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug42090.phpt
bug42785.phpt Prevent from being affected by local php.ini 2017-10-13 18:23:56 +08:00
bug43941.phpt Revert JSON merges to 5.4 2012-07-01 16:38:26 +02:00
bug45791.phpt
bug46215.phpt Use the same CS for all json tests 2015-11-15 19:06:09 +00:00
bug46944.phpt Use the same CS for all json tests 2015-11-15 19:06:09 +00:00
bug47644.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug50224.phpt Prevent from being affected by local php.ini 2017-10-13 18:23:56 +08:00
bug53946.phpt Revert JSON merges to 5.4 2012-07-01 16:38:26 +02:00
bug54058.phpt Use the same CS for all json tests 2015-11-15 19:06:09 +00:00
bug54484.phpt Merge branch 'PHP-5.6' into PHP-7.0 2015-11-15 19:13:49 +00:00
bug55543.phpt
bug61537.phpt Revert JSON merges to 5.4 2012-07-01 16:38:26 +02:00
bug61978.phpt json_encode(): Detect recursion earlier 2016-11-19 23:52:08 +01:00
bug62010.phpt Fix bug #62010 (json_decode produces invalid byte-sequences) 2015-06-28 17:16:12 +01:00
bug62369.phpt Use the same CS for all json tests 2015-11-15 19:06:09 +00:00
bug63737.phpt Use the same CS for all json tests 2015-11-15 19:06:09 +00:00
bug64695.phpt Fix bug #64695 (JSON_NUMERIC_CHECK has issues with strings that are numbers plus the letter e) 2015-02-22 20:22:47 +00:00
bug64874_part1.phpt Use the same CS for all json tests 2015-11-15 19:06:09 +00:00
bug64874_part2.phpt Use the same CS for all json tests 2015-11-15 19:06:09 +00:00
bug66021.phpt Use the same CS for all json tests 2015-11-15 19:06:09 +00:00
bug66025.phpt Introduce json encoder to fix globals related issues 2016-10-30 13:20:10 +00:00
bug68546.phpt Fix bug #68546 (json_decode cannot access property started with \0) 2015-06-21 15:30:33 +01:00
bug68567.phpt Fix bug #68567 (JSON_PARTIAL_OUTPUT_ON_ERROR can result in JSON with null key) 2017-10-15 19:36:15 +01:00
bug68817.phpt Fix bug #68817: Null pointer deference 2015-01-14 16:12:35 -08:00
bug68938.phpt Revert "json_decode() should generate a syntax error when given ""." 2015-02-04 12:48:17 +01:00
bug68992.phpt Merge branch 'PHP-7.0' into PHP-7.1 2016-09-19 16:42:53 +02:00
bug69187.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug71835.phpt Update test script 2016-03-22 11:28:19 +08:00
bug72069.phpt Fixed bug #72069 (Behavior \JsonSerializable different from json_encode) 2016-04-22 21:41:44 -07:00
bug72787.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
bug73113.phpt Do not wrap user exception in case of custom JSON serialization 2016-09-19 16:06:12 +02:00
bug73254.phpt Introduce json encoder to fix globals related issues 2016-10-30 13:20:10 +00:00
bug73991.phpt Allow JSON_OBJECT_AS_ARRAY option to actually have meaning 2017-03-17 15:36:24 -07:00
fail001.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
inf_nan_error.phpt Revert JSON merges to 5.4 2012-07-01 16:38:26 +02:00
json_decode_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
json_decode_error.phpt Use the same CS for all json tests 2015-11-15 19:06:09 +00:00
json_decode_invalid_utf8.phpt Fix segfault in json ignoring of invalid UTF8 2017-08-06 17:20:31 +01:00
json_encode_basic_utf8.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
json_encode_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
json_encode_error.phpt Use the same CS for all json tests 2015-11-15 19:06:09 +00:00
json_encode_invalid_utf8.phpt Add JSON_INVALID_UTF8_SUBSTITUTE and JSON_INVALID_UTF8_IGNORE 2017-07-16 12:35:24 +01:00
json_encode_numeric.phpt Prevent from being affected by local php.ini 2017-10-13 18:23:56 +08:00
json_encode_pretty_print.phpt
json_encode_u2028_u2029.phpt json_encode: Escape U+2028 and U+2029 more often. 2016-01-22 19:40:58 +00:00
json_encode_unescaped_slashes.phpt
json_last_error_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
json_last_error_msg_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
pass001.1_64bit.phpt Merge branch 'PHP-7.1' into PHP-7.2 2017-12-30 17:41:45 +00:00
pass001.1.phpt Merge branch 'PHP-7.1' into PHP-7.2 2017-12-30 17:41:45 +00:00
pass001.phpt Merge branch 'PHP-7.1' into PHP-7.2 2017-12-30 17:41:45 +00:00
pass002.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
pass003.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
serialize.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
unsupported_type_error.phpt Port JSON 2014-05-05 01:00:59 +02:00