Edit report at https://bugs.php.net/bug.php?id=30157&edit=1

 ID:                 30157
 Updated by:         bj...@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] bj...@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] paj...@php.net

Hm, actually let move it as a to be documented instead

------------------------------------------------------------------------
[2011-08-28 22:05:36] paj...@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

Reply via email to