1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 00:32:23 +01:00
Files
archived-php-src/ext
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
..
2021-02-02 10:31:16 +01:00
2021-01-25 10:44:05 +00:00
2020-08-31 09:32:55 +02:00
2020-10-30 15:47:18 +01:00
2020-08-24 17:36:50 +02:00
2020-10-15 10:16:56 +02:00
2020-10-09 15:24:53 +02:00
2020-10-22 17:05:07 +01:00
2020-07-28 10:27:22 +02:00
2020-10-26 15:40:12 +01:00
2021-03-15 14:38:09 +01:00
2021-03-15 14:38:09 +01:00
2021-02-02 16:46:16 +01:00
2020-10-29 13:09:19 +01:00
2021-04-12 16:05:37 +02:00
2021-03-18 10:48:43 +01:00
2020-10-28 12:18:02 +01:00
2021-04-08 15:28:03 +02:00
2020-05-13 23:25:28 +02:00
2020-11-02 11:39:42 +01:00
2020-08-26 12:11:22 +02:00
2020-08-10 12:25:26 +02:00
2020-10-30 15:47:18 +01:00