PHP Sadness

The stream_tell() method cannot be overridden with a wrapper - it is ignored (known bug)

PHP's stream wrapper system documents a stream_tell method to override ftell, but it is never actually called. This has been a bug for five years (as of 20091020).

See: php streamwrapper.stream-tell and http://bugs.php.net/bug.php?id=30157