From 8dca5ae5ece54dde2e303df26fe291282a342798 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Sun, 22 Apr 2018 22:19:51 -0700 Subject: [PATCH] Fix test --- ext/iconv/tests/bug76249.phpt | 6 ++++-- 1 file 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 -- 2.40.0