<?php include_once dirname(__FILE__) . "/Localize.class.php"; include_once dirname(__FILE__) . "/errors.php"; PHPLangError::init("ja");
$text = substr_replace($text, $t, $matchs[0][1], strlen($matchs[0][0])); $offset += strlen($t); $n++; } return $text; } /** * */ static function shutdown_handler() { $isError = false; if ($error = error_get_last()) { switch ($error['type']) { case E_ERROR: case E_PARSE: case E_CORE_ERROR: case E_CORE_WARNING: case E_COMPILE_ERROR: case E_COMPILE_WARNING: $isError = true; break; } } if ($isError) { echo self::error_handler($error['type'], $error['message'], $error['file'], $error['line'], null); } } } PHPLangError::init();