php-src/Zend/tests/generators
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
..
errors Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
finally Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
aborted_yield_during_nested_fcalls.phpt
aborted_yield_during_new.phpt
aborted_yield_during_switch.phpt
auto_incrementing_keys.phpt
backtrace.phpt
basic_yield_from_exception_handling.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
basic_yield_from_proxying.phpt
bug63066.phpt
bug65035.phpt
bug65161.phpt
bug66041.phpt
bug67497.phpt
bug69419.phpt
bug70904.phpt Fixed bug #70904 (yield from incorrectly marks valid generator as finished) 2015-11-24 23:43:34 +01:00
bug70965.phpt Fixed bug #70965 (yield from with a common iterator primes too much) 2015-11-25 09:54:24 +01:00
bug71013.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
bug71297.phpt Fixed bug #71297 (Memory leak with yield from) 2016-01-07 11:56:21 +01:00
bug71441.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
bug71601.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
bug72523.phpt Fixed bug #72523 (dtrace issue with reflection (failed test)) 2016-07-01 18:50:35 +08:00
bug74157.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug74606.phpt Fixed bug #74606 (Segfault within try/catch/finally nesting in Generators) 2017-05-17 19:58:51 +02:00
bug74954.phpt Fixed bug #74954 (null deref and segfault in zend_generator_resume()) 2017-07-22 11:14:00 +02:00
bug75396.phpt Fixed bug #75396 2018-01-12 21:27:23 +01:00
bug76427.phpt Fixed bug #76427 (Segfault in zend_objects_store_put) 2018-06-11 21:00:38 +08:00
clone.phpt
dangling_send_target.phpt Fix dangling send target when using yield from 2016-02-11 16:25:16 +01:00
dynamic_call.phpt
fibonacci.phpt
func_get_args.phpt
gc_with_root_parent_mismatch.phpt Fix generator GC if yield from parent chain does not reach root 2018-01-13 11:04:26 +01:00
gc_with_yield_from.phpt These tests rely on gc being enabled 2017-01-10 11:57:59 -05:00
generator_closure.phpt
generator_closure_unused.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
generator_closure_with_this.phpt
generator_in_multipleiterator.phpt
generator_method.phpt
generator_method_by_ref.phpt
generator_return_return_type.phpt
generator_return_without_value.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
generator_returns_generator.phpt
generator_rewind.phpt
generator_send.phpt
generator_static_method.phpt
generator_symtable_leak.phpt
generator_throwing_during_function_call.phpt
generator_throwing_exception.phpt
generator_throwing_in_foreach.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
generator_trampoline.phpt Fixed calling generators through magic __call() 2016-11-28 12:20:19 +03:00
generator_with_arg_unpacking.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
generator_with_keys.phpt
generator_with_nonscalar_keys.phpt
generator_with_type_check.phpt Use int instead of integer in type errors 2018-02-04 19:08:23 +01:00
generator_with_type_check_2.phpt Use int instead of integer in type errors 2018-02-04 19:08:23 +01:00
get_return.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
get_return_and_finally.phpt
get_return_errors.phpt
get_return_types.phpt
ignored_send_leak.phpt
multiple_yield_from_on_same_generator.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
mutli_yield_from_with_exception.phpt Fix ClosedGeneratorException possibly thrown into wrong scope 2016-07-23 16:39:21 +02:00
nested_calls_with_die.phpt
nested_method_calls.phpt
no_foreach_var_leaks.phpt
recursive_yield_from.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
return_from_by_ref_generator.phpt Fix return from by-ref generators 2016-07-14 15:44:04 +02:00
send_after_close.phpt
send_returns_current.phpt
throw_already_closed.phpt
throw_caught.phpt
throw_into_yield_from_array.phpt Fixed bug causing exception not being thrown immediately into a generator yielding from an array 2015-11-25 23:09:44 +01:00
throw_not_an_exception.phpt
throw_rethrow.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
throw_uncaught.phpt
unused_return_value.phpt
xrange.phpt
yield_array_key.phpt
yield_array_offset_by_ref.phpt
yield_by_reference.phpt
yield_closure.phpt
yield_during_function_call.phpt
yield_during_method_call.phpt
yield_from_already_running.phpt
yield_from_array.phpt
yield_from_backtrace.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
yield_from_by_reference.phpt Forbid yield from in by-reference generators 2016-02-12 17:55:29 +01:00
yield_from_deep_recursion.phpt
yield_from_force_closed.phpt Forbid "yield from" in force closed generators 2016-05-28 13:21:05 +02:00
yield_from_greedy_parse.phpt Fix bug where yield from is captured too greedily 2017-03-23 13:31:06 -07:00
yield_from_iterator.phpt
yield_from_iterator_agregate.phpt Fised possible use-after-free 2016-04-04 09:35:48 +03:00
yield_from_multi_tree.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
yield_from_multi_tree_exception.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
yield_in_finally.phpt
yield_in_parenthesis.phpt
yield_precedence.phpt
yield_ref_function_call_by_reference.phpt
yield_unary_precedence.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
yield_without_value.phpt