|  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: 2020-09-08 11:25 UTC
From: bugs dot php at mohiva dot com Assigned: cmb (profile)
Status: Closed 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 !
Your email address:
Solve the problem:
49 - 5 = ?
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
 [2020-09-08 11:14 UTC]
-Assigned To: +Assigned To: cmb
 [2020-09-08 11:25 UTC]
-Status: Assigned +Status: Closed
 [2020-09-08 11:25 UTC]
That has been fixed long ago: <>.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jun 25 05:01:24 2021 UTC