1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 19:41:05 +02:00
This commit is contained in:
Stanislav Malyshev
2018-04-22 22:19:51 -07:00
parent 06d309fd7a
commit 8dca5ae5ec

View File

@@ -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