summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2018-04-22 22:19:51 -0700
committerStanislav Malyshev <stas@php.net>2018-04-22 22:19:51 -0700
commit8dca5ae5ece54dde2e303df26fe291282a342798 (patch)
treeb24693cb43e0fde1096f631123b2a6e07b63ce5a /ext
parent06d309fd7a917575d65c7a6f4f57b0e6bb0f9711 (diff)
downloadphp-git-8dca5ae5ece54dde2e303df26fe291282a342798.tar.gz
Fix test
Diffstat (limited to 'ext')
-rw-r--r--ext/iconv/tests/bug76249.phpt6
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