Bug #30157 [Tbd->Csd]: ftell() function does not use stream_tell()
| From: | bjori@php.net | Date: | Tue, 30 Aug 2011 11:43:56 +0000 |
| Subject: | Bug #30157 [Tbd->Csd]: ftell() function does not use stream_tell() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163142@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=30157&edit=1
ID: 30157
Updated by: bjori@php.net
Reported by: tendencies at free dot fr
Summary: ftell() function does not use stream_tell()
-Status: To be documented
+Status: Closed
Type: Bug
Package: Streams related
Operating System: *
PHP Version: 5CVS-2004-09-19 (dev)
-Assigned To:
+Assigned To: bjori
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2011-08-30 11:43:48] bjori@php.net
Automatic comment from SVN on behalf of bjori
Revision: http://svn.php.net/viewvc/?view=revision&revision=315772
Log: Fixed bug#30157, stream_tell() isn't called by ftell(), only when seeking
------------------------------------------------------------------------
[2011-08-28 22:06:32] pajoye@php.net
Hm, actually let move it as a to be documented instead
------------------------------------------------------------------------
[2011-08-28 22:05:36] pajoye@php.net
.
------------------------------------------------------------------------
[2011-08-28 22:01:39] bugs dot php at mohiva dot com
I think this bug can be closed. As described by Gustavo(http://news.php.net/php.internals/54999),
this is by design. And the wrong results, described in the last comments, are errors in my stream
wrapper implementation.
------------------------------------------------------------------------
[2011-08-28 10:53:37] bugs dot php at mohiva dot com
>> Do you have further analyzes to provide?
Please look at the code at https://gist.github.com/1176512
In this scenario stream_tell gets only be executed internally, after calling stream_fseek. This is
the correct behaviour and documented at http://www.php.net/manual/en/streamwrapper.stream-seek.php.
As you can see, the first both ftell calls returns a wrong result. Only the last ftell call returns
the correct result.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=30157
--
Edit this bug report at https://bugs.php.net/bug.php?id=30157&edit=1