php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #51200 file_get_contents() and "offset" & "length" misunderstanding
Submitted: 2010-03-03 18:49 UTC Modified: 2010-03-18 18:36 UTC
From: slspam at land dot ru Assigned: kalle (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.2.13 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: slspam at land dot ru
New email:
PHP Version: OS:

 

 [2010-03-03 18:49 UTC] slspam at land dot ru
Description:
------------
Confusing thing appears when reading data with using stream filters. I discovered that "offset" is applied to original stream, while "maxlen" is applied to the stream processed by filter(s). Please, update documentation and remove the following partly incorrect online note:

http://ru.php.net/manual/en/function.file-get-contents.php#96499


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-04 15:09 UTC] jani@php.net
-Status: Assigned +Status: Open -Assigned To: jani +Assigned To: jani
 [2010-03-16 13:14 UTC] jani@php.net
-Type: Feature/Change Request +Type: Documentation Problem
 [2010-03-18 18:36 UTC] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=296352
Log: Fixed bug #51200 (file_get_contents() and "offset" & "length" misunderstanding)
 [2010-03-18 18:36 UTC] kalle@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: kalle
 [2010-03-18 18:36 UTC] kalle@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:09 UTC] phpdocbot@php.net
Automatic comment on behalf of kalle
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=7af997f9451e0b45089a208fe6a9e405b368973b
Log: Fixed bug #51200 (file_get_contents() and "offset" & "length" misunderstanding)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 09:00:02 2026 UTC