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: 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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 11:36 UTC] cmb@php.net
-Package: Documentation problem +Package: Streams related
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Mon Sep 24 17:01:25 2018 UTC