From 5ea71a9210fcd4ae46c62b8d6fc12e76c2fb47e6 Mon Sep 17 00:00:00 2001 From: Karoly Negyesi Date: Sun, 12 Jun 2011 15:03:18 +0000 Subject: [PATCH] adding context to the eof ignored problem git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312102 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/stream/streamwrapper/stream-eof.xml | 7 +++++-- reference/stream/streamwrapper/stream-read.xml | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/reference/stream/streamwrapper/stream-eof.xml b/reference/stream/streamwrapper/stream-eof.xml index 3d7fb08de7..740fd66b96 100644 --- a/reference/stream/streamwrapper/stream-eof.xml +++ b/reference/stream/streamwrapper/stream-eof.xml @@ -58,8 +58,11 @@ &reftitle.notes; - As long as streamWrapper::stream_read returns - a non-empty string the return value of + When reading a file, PHP will call call + streamWrapper::stream_read followed by + streamWrapper::stream_eof in a loop but as long + as streamWrapper::stream_read returns a + non-empty string, the return value of streamWrapper::stream_eof is ignored. diff --git a/reference/stream/streamwrapper/stream-read.xml b/reference/stream/streamwrapper/stream-read.xml index b232c70257..439399c6a7 100644 --- a/reference/stream/streamwrapper/stream-read.xml +++ b/reference/stream/streamwrapper/stream-read.xml @@ -101,8 +101,11 @@ - As long as streamWrapper::stream_read returns - a non-empty string the return value of + When reading a file, PHP will call call + streamWrapper::stream_read followed by + streamWrapper::stream_eof in a loop but as long + as streamWrapper::stream_read returns a + non-empty string, the return value of streamWrapper::stream_eof is ignored.