1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/mbstring/tests/simpletest.phpt
Nikita Popov 39131219e8 Migrate more SKIPIF -> EXTENSIONS (#7139)
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
2021-06-11 12:58:44 +02:00

34 lines
843 B
PHP

--TEST--
Simple multi-byte print test (EUC-JP)
--EXTENSIONS--
mbstring
--INI--
output_handler=
--FILE--
<?php
/*
* Test basic PHP functions to check if it works with multi-byte chars
*/
// EUC-JP strings
$s1 = "マルチバイト関数が使えます。";
$s2 = "この文字が連結されているはず。";
// print directly
echo "echo: ".$s1.$s2."\n";
print("print: ".$s1.$s2."\n");
printf("printf: %s%s\n",$s1, $s2);
echo sprintf("sprintf: %s%s\n",$s1, $s2);
// Assign to var
$s3 = $s1.$s2."\n";
echo "echo: ".$s3;
?>
--EXPECT--
echo: マルチバイト関数が使えます。この文字が連結されているはず。
print: マルチバイト関数が使えます。この文字が連結されているはず。
printf: マルチバイト関数が使えます。この文字が連結されているはず。
sprintf: マルチバイト関数が使えます。この文字が連結されているはず。
echo: マルチバイト関数が使えます。この文字が連結されているはず。