e.g. "rm -f *.php"
@ -2,7 +2,7 @@
// TODO:
//$debug = true;
ini_set('include_path','.');
include_once('common.php');
include_once('common.inc');
// EUC-JP
$r = mb_internal_encoding('EUC-JP');
// TODO: This is not a real test.... Need to change so that it does real testing
$ini = ini_get('mbstring.http_input');
//TODO: Add more encoding. Wrong paramter type test.
// Set HTTP output encoding to ASCII
$r = mb_http_output('ASCII');
@ -1,7 +1,7 @@
<?php
// Set order to "auto"
// Note: It does not return TRUE/FALSE for setting char
@ -3,7 +3,7 @@
//$debug=true;
$str = mb_preferred_mime_name('sjis-win');
// restore detect_order to 'auto'
mb_detect_order('auto');
// Test string
// TODO: Add more encodings
$euc_jp = '0123この文字列は日本語です。EUC-JPを使っています。日本語は面倒臭い。';
// TODO: Add more encoding
// TODO: Add more tests
//$debug = true; // Uncomment this line to view error/warning/notice message in *.out file
// SJIS string (BASE64 encoded)
$sjis = base64_decode('k/qWe4zqg2WDTINYg2eCxYK3gUIwMTIzNIJUglWCVoJXgliBQg==');
// TODO: Add more encoding, strings.....
@ -1,5 +1,5 @@
--TEST--
strlen()
mb_strlen()
--SKIPIF--
<?php include('skipif.inc'); ?>
--POST--