|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55529 Wrong description for streamWrapper::stream_seek method
Submitted: 2011-08-29 11:59 UTC Modified: 2017-01-28 11:36 UTC
From: bugs dot php at mohiva dot com Assigned:
Status: Open Package: Streams related
PHP Version: 5.3.8 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
9 + 48 = ?
Subscribe to this entry?

 [2011-08-29 11:59 UTC] bugs dot php at mohiva dot com
It should be documented that, in some circumstances, the "stream_seek"
method isn't called in response to fseek.

As example:

// fseek will be called in response to fseek
$fp = fopen('mfx://test', 'w');
fwrite($fp, '12345678');
fseek($fp, 1, SEEK_CUR);

// fseek will not be called in response to fseek
$fp = fopen('mfx://test', 'w');
fwrite($fp, '12345678');
fread($fp, 2);
fseek($fp, 1, SEEK_CUR);

This is pointed out by Gustavo on the internals list:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 11:36 UTC]
-Package: Documentation problem +Package: Streams related
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Dec 13 05:01:26 2019 UTC