Doc #55529 [Asn->Csd]: Wrong description for streamWrapper::stream_seek method

From: Date: Tue, 08 Sep 2020 11:25:30 +0000
Subject: Doc #55529 [Asn->Csd]: Wrong description for streamWrapper::stream_seek method
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17879@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55529&edit=1 ID: 55529 Updated by: cmb@php.net Reported by: bugs dot php at mohiva dot com Summary: Wrong description for streamWrapper::stream_seek method -Status: Assigned +Status: Closed Type: Documentation Problem Package: Streams related Operating System: Linux PHP Version: 5.3.8 Assigned To: cmb Block user comment: N Private report: N New Comment: That has been fixed long ago: <http://svn.php.net/viewvc?view=revision&revision=316018>. Previous Comments: ------------------------------------------------------------------------ [2011-08-29 11:59:46] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55529&edit=1

« previous php.doc.bugs (#17879) next »