diff options
author | Arnaud Le Blanc <lbarnaud@php.net> | 2008-11-03 16:58:53 +0000 |
---|---|---|
committer | Arnaud Le Blanc <lbarnaud@php.net> | 2008-11-03 16:58:53 +0000 |
commit | de29f4161f180520afac5193e0318b500755a696 (patch) | |
tree | 7aee34c6a45f3d13ab1df85b85587490418b09aa /ext | |
parent | 0a2bfc79687862a67249cac725664151a1756c6f (diff) | |
download | php-git-de29f4161f180520afac5193e0318b500755a696.tar.gz |
MFH: Fixed bug #45303 (Opening php:// wrapper in append mode results
in a warning)
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/tests/file/bug45303.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/standard/tests/file/bug45303.phpt b/ext/standard/tests/file/bug45303.phpt new file mode 100644 index 0000000000..0a4b33bcff --- /dev/null +++ b/ext/standard/tests/file/bug45303.phpt @@ -0,0 +1,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) |