mark too long parameters

This commit is contained in:
Steffen Schröder 2014-06-14 19:36:54 +02:00
parent 3b95166b21
commit ac55d0f511

View File

@ -254,7 +254,10 @@ class ErrorHandler {
$type = gettype($arg); $type = gettype($arg);
$string .= $type . '('; $string .= $type . '(';
if (is_string($arg)) { if (is_string($arg)) {
$param = iconv('UTF-8', 'UTF-8//IGNORE', substr($arg, 0, 20)); $param = iconv('UTF-8', 'UTF-8//IGNORE', $arg);
if (strlen($param) > 20) {
$param = substr($param, 0, 20) . '..';
}
$string .= print_r($param, true); $string .= print_r($param, true);
} else { } else {
$string .= print_r($arg, true); $string .= print_r($arg, true);