From 393365367eebdb347f8c643279b143edf3ada04f Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Mon, 14 Sep 2020 11:42:49 +0000 Subject: [PATCH] Fix #75923: Body is fetched without the last line git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350566 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../mailparse/functions/mailparse-msg-parse-file.xml | 6 ++++++ reference/mailparse/functions/mailparse-msg-parse.xml | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/reference/mailparse/functions/mailparse-msg-parse-file.xml b/reference/mailparse/functions/mailparse-msg-parse-file.xml index e65eeec9f3..dbbae8a8b3 100644 --- a/reference/mailparse/functions/mailparse-msg-parse-file.xml +++ b/reference/mailparse/functions/mailparse-msg-parse-file.xml @@ -28,6 +28,12 @@ Path to the file holding the message. The file is opened and streamed through the parser. + + + The message contained in filename is supposed to end with a newline + (CRLF); otherwise the last line of the message will not be parsed. + + diff --git a/reference/mailparse/functions/mailparse-msg-parse.xml b/reference/mailparse/functions/mailparse-msg-parse.xml index 14917e8b3d..ad9945aa96 100644 --- a/reference/mailparse/functions/mailparse-msg-parse.xml +++ b/reference/mailparse/functions/mailparse-msg-parse.xml @@ -36,8 +36,12 @@ data - - + + + The final chunk of data is supposed to end with a newline + (CRLF); otherwise the last line of the message will not be parsed. + +