1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
Christoph M. Becker 976e71a2fa Fix #80933: SplFileObject::DROP_NEW_LINE is broken for NUL and CR
`buf` may contain NUL bytes, so we must not use `strcspn()` but rather
a binary safe variant.  However, we also must not detect a stray CR as
line ending, and since we only need to check line endings at the end
of the buffer, we can nicely optimize.

Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>

Closes GH-6836.
2021-04-13 16:49:06 +02:00
..
2016-03-18 20:28:58 +01:00
2019-02-03 21:03:00 +01:00
2016-03-18 20:28:58 +01:00
2019-08-13 12:34:48 +02:00
2019-12-16 00:03:18 -08:00
2016-03-20 18:17:44 +01:00
2016-03-20 17:46:12 +01:00
2016-09-22 12:46:19 +02:00
2015-12-04 06:51:16 -08:00
2015-12-17 20:59:57 +01:00
2015-12-23 08:13:13 -08:00
2016-02-21 13:00:37 +01:00
2017-12-22 18:22:00 +01:00
2018-10-13 11:23:52 +02:00
2017-03-09 00:10:00 +01:00
2017-12-06 23:36:09 +01:00
2017-09-04 21:23:07 +02:00
2017-12-22 18:11:38 +01:00
2017-12-22 18:01:03 +01:00
2019-05-07 04:34:37 +02:00
2019-03-18 11:06:23 +01:00
2019-04-16 10:38:20 +02:00
2019-08-15 10:40:28 +02:00
2019-08-23 15:27:28 +02:00
2019-08-26 11:08:42 +02:00
2020-01-23 14:20:26 +01:00
2020-06-19 10:46:26 +02:00
2021-02-11 16:12:06 +01:00
2018-09-21 14:12:25 +02:00
2018-09-21 14:12:25 +02:00
2019-01-11 15:49:06 +01:00
2017-02-03 18:52:57 +01:00
2016-03-18 20:28:58 +01:00
2017-12-06 23:36:09 +01:00
2018-09-21 14:12:25 +02:00