xref: /php-src/ext/standard/tests/file/bug45303.phpt (revision d1764ca3)
1--TEST--
2Bug #45303 (Opening php:// wrapper in append mode results in a warning)
3--FILE--
4<?php
5$fd = fopen("php://stdout","a");
6var_dump($fd);
7var_dump(fseek($fd, 1024*1024, SEEK_SET));
8?>
9--EXPECTF--
10resource(%d) of type (stream)
11
12Warning: fseek(): Stream does not support seeking in %s
13int(-1)
14