mark too long parameters
This commit is contained in:
parent
3b95166b21
commit
ac55d0f511
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user