mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
14 lines
297 B
Plaintext
14 lines
297 B
Plaintext
|
--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)
|