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