php-src/ext/standard/tests/streams/bug81346.phpt
Christoph M. Becker 47aaffcdee
Fix SKIPIF clause
2021-08-11 11:11:34 +02:00

20 lines
392 B
PHP

--TEST--
Bug #81346 (Non-seekable streams don't update position after write)
--DESCRIPTION--
The test expectation is due to bug #81345.
--EXTENSIONS--
bz2
--FILE--
<?php
$s = fopen("compress.bzip2://" . __DIR__ . "/bug81346.bz2", "w");
fwrite($s, str_repeat("hello world", 100));
fflush($s);
var_dump(ftell($s));
?>
--CLEAN--
<?php
@unlink(__DIR__ . "/bug81346.bz2");
?>
--EXPECT--
int(1100)