1--TEST--
2Bug #81346 (Non-seekable streams don't update position after write)
3--DESCRIPTION--
4The test expectation is due to bug #81345.
5--SKIPIF--
6<?php
7if (!extension_loaded('bz2')) die("skip bz2 extension not available");
8?>
9--FILE--
10<?php
11$s = fopen("compress.bzip2://" . __DIR__ . "/bug81346.bz2", "w");
12fwrite($s, str_repeat("hello world", 100));
13fflush($s);
14var_dump(ftell($s));
15?>
16--CLEAN--
17<?php
18@unlink(__DIR__ . "/bug81346.bz2");
19?>
20--EXPECT--
21int(1100)
22