php.net |  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
 [2011-08-29 11:59 UTC] bugs dot php at mohiva dot com
Description:
------------
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);
fclose($fp);


// 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);
fclose($fp);

This is pointed out by Gustavo on the internals list:
http://news.php.net/php.internals/54999


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 11:36 UTC] cmb@php.net
-Package: Documentation problem +Package: Streams related
 [2020-09-08 11:14 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2020-09-08 11:25 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 [2020-09-08 11:25 UTC] cmb@php.net
That has been fixed long ago: <http://svn.php.net/viewvc?view=revision&revision=316018>.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 04 12:01:30 2024 UTC