diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/iconv/tests/bug76249.phpt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/iconv/tests/bug76249.phpt b/ext/iconv/tests/bug76249.phpt index 5a9d8f171e..1503f0bc81 100644 --- a/ext/iconv/tests/bug76249.phpt +++ b/ext/iconv/tests/bug76249.phpt @@ -8,9 +8,11 @@ $fh = fopen('php://memory', 'rw'); fwrite($fh, "abc"); rewind($fh); stream_filter_append($fh, 'convert.iconv.ucs-2/utf8//IGNORE', STREAM_FILTER_READ, []); -echo stream_get_contents($fh); +$a = stream_get_contents($fh); +var_dump(strlen($a)); ?> DONE --EXPECTF-- Warning: stream_get_contents(): iconv stream filter ("ucs-2"=>"utf8//IGNORE"): invalid multibyte sequence in %sbug76249.php on line %d -ć…˘DONE +int(3) +DONE |