Back to index

php5  5.3.10
Classes | Functions | Variables
common.inc File Reference

Go to the source code of this file.

Classes

class  tc

Functions

 test_error_handler ($err_no, $err_msg, $filename, $linenum, $vars)

Variables

 $t_ary
 $t_obj = new tc

Function Documentation

test_error_handler ( err_no,
err_msg,
filename,
linenum,
vars 
)

Definition at line 7 of file common.inc.

                                                                           {
       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
                            2048=> "Strict Notice",      // E_STRICT
                            4096=> "Catchable fatal error",      // E_RECOVERABLE_ERROR
                            );
       
       if (!empty($debug)) {
              printf("%s: %s (%d)\n", $err_type[$err_no], $err_msg, $linenum);
       }
       else {
              printf("ERR: %s\n",$err_type[$err_no]);
       }
}

Variable Documentation

$t_ary
Initial value:
 array(
              's1' => '日本語EUC-JPの文字列',
              's2' => 'English Text'
              )

Definition at line 38 of file common.inc.

$t_obj = new tc

Definition at line 53 of file common.inc.