diff options
| author | foobar <sniper@php.net> | 2002-07-14 00:22:52 +0000 |
|---|---|---|
| committer | foobar <sniper@php.net> | 2002-07-14 00:22:52 +0000 |
| commit | 1586c176f6a3663bf91ab20bb3749ebf16d5f663 (patch) | |
| tree | d8837809fe50bfec53de5700e96a8393c484b976 | |
| parent | 3cdcc6a201399f6bd80808f6e5a7d6c5f583324d (diff) | |
| download | php-git-1586c176f6a3663bf91ab20bb3749ebf16d5f663.tar.gz | |
.php files are in .cvsignore here
| -rw-r--r-- | ext/mbstring/tests/002.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/003.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/004.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/005.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/006.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/008.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/009.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/010.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/011.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/012.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/013.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/014.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/015.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/016.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/017.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/018.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/019.inc | 2 | ||||
| -rw-r--r-- | ext/mbstring/tests/common.php | 53 |
18 files changed, 17 insertions, 70 deletions
diff --git a/ext/mbstring/tests/002.inc b/ext/mbstring/tests/002.inc index 241b78393e..6b16ca8d46 100644 --- a/ext/mbstring/tests/002.inc +++ b/ext/mbstring/tests/002.inc @@ -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'); diff --git a/ext/mbstring/tests/003.inc b/ext/mbstring/tests/003.inc index 675140726c..b6a6d3e9a4 100644 --- a/ext/mbstring/tests/003.inc +++ b/ext/mbstring/tests/003.inc @@ -2,7 +2,7 @@ // 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'); diff --git a/ext/mbstring/tests/004.inc b/ext/mbstring/tests/004.inc index 271a348b58..421bb5a681 100644 --- a/ext/mbstring/tests/004.inc +++ b/ext/mbstring/tests/004.inc @@ -2,7 +2,7 @@ //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'); diff --git a/ext/mbstring/tests/005.inc b/ext/mbstring/tests/005.inc index 5d486eb2a7..88edb11131 100644 --- a/ext/mbstring/tests/005.inc +++ b/ext/mbstring/tests/005.inc @@ -1,7 +1,7 @@ <?php //$debug = true; ini_set('include_path','.'); -include_once('common.php'); +include_once('common.inc'); // Set order to "auto" diff --git a/ext/mbstring/tests/006.inc b/ext/mbstring/tests/006.inc index 749b019990..80422d0a6c 100644 --- a/ext/mbstring/tests/006.inc +++ b/ext/mbstring/tests/006.inc @@ -1,7 +1,7 @@ <?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 diff --git a/ext/mbstring/tests/008.inc b/ext/mbstring/tests/008.inc index 5a52473dd4..035f459d6c 100644 --- a/ext/mbstring/tests/008.inc +++ b/ext/mbstring/tests/008.inc @@ -3,7 +3,7 @@ //$debug=true; ini_set('include_path','.'); -include_once('common.php'); +include_once('common.inc'); $str = mb_preferred_mime_name('sjis-win'); diff --git a/ext/mbstring/tests/009.inc b/ext/mbstring/tests/009.inc index efdb9f8503..2eb2f9d1c8 100644 --- a/ext/mbstring/tests/009.inc +++ b/ext/mbstring/tests/009.inc @@ -3,7 +3,7 @@ //$debug=true; ini_set('include_path','.'); -include_once('common.php'); +include_once('common.inc'); // restore detect_order to 'auto' mb_detect_order('auto'); diff --git a/ext/mbstring/tests/010.inc b/ext/mbstring/tests/010.inc index 2f6ccc406f..dc50d3fcff 100644 --- a/ext/mbstring/tests/010.inc +++ b/ext/mbstring/tests/010.inc @@ -3,7 +3,7 @@ //$debug=true; ini_set('include_path','.'); -include_once('common.php'); +include_once('common.inc'); // Test string diff --git a/ext/mbstring/tests/011.inc b/ext/mbstring/tests/011.inc index ae8b75d5da..43ebf82dbe 100644 --- a/ext/mbstring/tests/011.inc +++ b/ext/mbstring/tests/011.inc @@ -3,7 +3,7 @@ //$debug=true; ini_set('include_path','.'); -include_once('common.php'); +include_once('common.inc'); // Test string diff --git a/ext/mbstring/tests/012.inc b/ext/mbstring/tests/012.inc index 18a9b6d91f..d6dad9a903 100644 --- a/ext/mbstring/tests/012.inc +++ b/ext/mbstring/tests/012.inc @@ -1,7 +1,7 @@ <?php // TODO: Add more encodings ini_set('include_path','.'); -include_once('common.php'); +include_once('common.inc'); // EUC-JP $euc_jp = '0123この文字列は日本語です。EUC-JPを使っています。日本語は面倒臭い。'; diff --git a/ext/mbstring/tests/013.inc b/ext/mbstring/tests/013.inc index ed6406687e..97da70c7dc 100644 --- a/ext/mbstring/tests/013.inc +++ b/ext/mbstring/tests/013.inc @@ -1,7 +1,7 @@ <?php // TODO: Add more encodings ini_set('include_path','.'); -include_once('common.php'); +include_once('common.inc'); // EUC-JP $euc_jp = '0123この文字列は日本語です。EUC-JPを使っています。日本語は面倒臭い。'; diff --git a/ext/mbstring/tests/014.inc b/ext/mbstring/tests/014.inc index afcbae28b8..0e714e7abf 100644 --- a/ext/mbstring/tests/014.inc +++ b/ext/mbstring/tests/014.inc @@ -2,7 +2,7 @@ // 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を使っています。日本語は面倒臭い。'; diff --git a/ext/mbstring/tests/015.inc b/ext/mbstring/tests/015.inc index ac497edef3..ca7f9dedd3 100644 --- a/ext/mbstring/tests/015.inc +++ b/ext/mbstring/tests/015.inc @@ -2,7 +2,7 @@ // 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=='); diff --git a/ext/mbstring/tests/016.inc b/ext/mbstring/tests/016.inc index bea679e502..ccc88e27b6 100644 --- a/ext/mbstring/tests/016.inc +++ b/ext/mbstring/tests/016.inc @@ -2,7 +2,7 @@ // 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=='); diff --git a/ext/mbstring/tests/017.inc b/ext/mbstring/tests/017.inc index c897c93b39..fd4f5b2d08 100644 --- a/ext/mbstring/tests/017.inc +++ b/ext/mbstring/tests/017.inc @@ -2,7 +2,7 @@ // 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=='); diff --git a/ext/mbstring/tests/018.inc b/ext/mbstring/tests/018.inc index b328a71ea1..3d9acfe383 100644 --- a/ext/mbstring/tests/018.inc +++ b/ext/mbstring/tests/018.inc @@ -2,7 +2,7 @@ // 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を使っています。日本語は面倒臭い。'; diff --git a/ext/mbstring/tests/019.inc b/ext/mbstring/tests/019.inc index 556d02d6aa..8de98f4778 100644 --- a/ext/mbstring/tests/019.inc +++ b/ext/mbstring/tests/019.inc @@ -3,7 +3,7 @@ //$debug=true; ini_set('include_path','.'); -include_once('common.php'); +include_once('common.inc'); // restore detect_order to 'auto' mb_detect_order('auto'); diff --git a/ext/mbstring/tests/common.php b/ext/mbstring/tests/common.php deleted file mode 100644 index d4d1d9a495..0000000000 --- a/ext/mbstring/tests/common.php +++ /dev/null @@ -1,53 +0,0 @@ -<?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 |
