php_stream_tell() returns the internal position of stream, relative to the start of the stream. If there is an error, -1 is returned.