Skip to content

Commit 8dca5ae

Browse files
committed
Fix test
1 parent 06d309f commit 8dca5ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ext/iconv/tests/bug76249.phpt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ $fh = fopen('php://memory', 'rw');
88
fwrite($fh, "abc");
99
rewind($fh);
1010
stream_filter_append($fh, 'convert.iconv.ucs-2/utf8//IGNORE', STREAM_FILTER_READ, []);
11-
echo stream_get_contents($fh);
11+
$a = stream_get_contents($fh);
12+
var_dump(strlen($a));
1213
?>
1314
DONE
1415
--EXPECTF--
1516
Warning: stream_get_contents(): iconv stream filter ("ucs-2"=>"utf8//IGNORE"): invalid multibyte sequence in %sbug76249.php on line %d
16-
慢DONE
17+
int(3)
18+
DONE

0 commit comments

Comments
 (0)