1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00
Files
archived-php-src/tests/output/ob_016.phpt
2006-06-02 23:45:53 +00:00

21 lines
359 B
PHP

--TEST--
output buffering - unicode/binary
--FILE--
<?php
declare(encoding="latin1");
ini_set("unicode.output_encoding", "utf8");
ob_start();
echo "-aäoöuüsß-";
$s = ob_get_clean();
var_dump($s);
var_dump(unicode_decode($s, unicode_semantics()?"utf8":"latin1"));
?>
--EXPECTF--
string(10) "%s"
unicode(10) "%s"
--UEXPECTF--
string(14) "%s"
unicode(10) "%s"