summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/bug45303.phpt
blob: 0a4b33bcff5239e7935afd02c31d38f5aee9595f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Bug #45303 (Opening php:// wrapper in append mode results in a warning)
--FILE--
<?php
$fd = fopen("php://stdout","a");
var_dump($fd);
var_dump(fseek($fd, 1024*1024, SEEK_SET));
?>
--EXPECTF--
resource(%d) of type (stream)

Warning: fseek(): stream does not support seeking in %s
int(-1)