// 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
//$debug = true;
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
$ini = ini_get('mbstring.http_input');
//TODO: Add more encoding. Wrong paramter type test.
//$debug = true;
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
// Set HTTP output encoding to ASCII
$r = mb_http_output('ASCII');
<?php
//$debug = true;
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
// Set order to "auto"
<?php
//$debug = true;
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
// Note: It does not return TRUE/FALSE for setting char
//$debug=true;
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
$str = mb_preferred_mime_name('sjis-win');
//$debug=true;
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
// restore detect_order to 'auto'
mb_detect_order('auto');
//$debug=true;
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
// Test string
//$debug=true;
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
// Test string
<?php
// TODO: Add more encodings
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
// EUC-JP
$euc_jp = '0123¤³¤Îʸ»úÎó¤ÏÆüËܸì¤Ç¤¹¡£EUC-JP¤ò»È¤Ã¤Æ¤¤¤Þ¤¹¡£ÆüËܸì¤ÏÌÌÅݽ¤¤¡£';
<?php
// TODO: Add more encodings
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
// EUC-JP
$euc_jp = '0123¤³¤Îʸ»úÎó¤ÏÆüËܸì¤Ç¤¹¡£EUC-JP¤ò»È¤Ã¤Æ¤¤¤Þ¤¹¡£ÆüËܸì¤ÏÌÌÅݽ¤¤¡£';
// TODO: Add more encoding
//$debug = true;
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
// EUC-JP
$euc_jp = '0123¤³¤Îʸ»úÎó¤ÏÆüËܸì¤Ç¤¹¡£EUC-JP¤ò»È¤Ã¤Æ¤¤¤Þ¤¹¡£ÆüËܸì¤ÏÌÌÅݽ¤¤¡£';
// TODO: Add more tests
//$debug = true; // Uncomment this line to view error/warning/notice message in *.out file
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
// SJIS string (BASE64 encoded)
$sjis = base64_decode('k/qWe4zqg2WDTINYg2eCxYK3gUIwMTIzNIJUglWCVoJXgliBQg==');
// TODO: Add more tests
//$debug = true; // Uncomment this line to view error/warning/notice message in *.out file
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
// SJIS string (BASE64 encoded)
$sjis = base64_decode('k/qWe4zqg2WDTINYg2eCxYK3gUIwMTIzNIJUglWCVoJXgliBQg==');
// TODO: Add more tests
//$debug = true; // Uncomment this line to view error/warning/notice message in *.out file
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
// SJIS string (BASE64 encoded)
$sjis = base64_decode('k/qWe4zqg2WDTINYg2eCxYK3gUIwMTIzNIJUglWCVoJXgliBQg==');
// TODO: Add more encoding, strings.....
//$debug = true;
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
// EUC-JP
$euc_jp = '0123¤³¤Îʸ»úÎó¤ÏÆüËܸì¤Ç¤¹¡£EUC-JP¤ò»È¤Ã¤Æ¤¤¤Þ¤¹¡£ÆüËܸì¤ÏÌÌÅݽ¤¤¡£';
//$debug=true;
ini_set('include_path','.');
-include_once('common.php');
+include_once('common.inc');
// restore detect_order to 'auto'
mb_detect_order('auto');
+++ /dev/null
-<?php
-/*
- * Common definition and Settings
- */
-
-// Custom Error Hanlder for testing
-function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) {
- global $debug;
-
- $err_type = array (
- 1 => "Error", // E_ERROR
- 2 => "Warning", // E_WARINING
- 4 => "Parsing Error", // E_PARSE
- 8 => "Notice", // E_NOTICE
- 16 => "Core Error", // E_CORE_ERROR
- 32 => "Core Warning", // E_CORE_WARNING
- 64 => "Compile Error", // E_COMPILE_ERROR
- 128 => "Compile Warning", // E_COMPILE_WARNING
- 256 => "User Error", // E_USER_ERROR
- 512 => "User Warning", // E_USER_WARMING
- 1024=> "User Notice" // E_USER_NOTICE
- );
-
- if (!empty($debug)) {
- printf("%s: %s (%d)\n", $err_type[$err_no], $err_msg, $linenum);
- }
- else {
- printf("ERR: %s\n",$err_type[$err_no]);
- }
-}
-
-set_error_handler('test_error_handler');
-
-
-// Var def for testing
-$t_ary = array(
- 's1' => 'ÆüËܸìEUC-JP¤Îʸ»úÎó',
- 's2' => 'English Text'
- );
-
-class tc
-{
- var $s1 = 'ÆüËܸìEUC-JP¤Îʸ»úÎó';
- var $s2 = 'English Text';
-
- function tc()
- {
- }
-}
-
-$t_obj = new tc;
-
-?>
\ No newline at end of file