From: Christian Weiske Date: Sun, 11 Aug 2013 20:05:36 +0000 (+0200) Subject: use multibyte functions X-Git-Tag: v1.0.0~10 X-Git-Url: https://git.cweiske.de/auerswald-callnotifier.git/commitdiff_plain/1d01023d44f2d338b8bbcd28f0830ce813c2595d use multibyte functions --- diff --git a/src/callnotifier/Functions.php b/src/callnotifier/Functions.php new file mode 100644 index 0000000..406317f --- /dev/null +++ b/src/callnotifier/Functions.php @@ -0,0 +1,60 @@ + diff --git a/src/callnotifier/Logger/CallFileTop.php b/src/callnotifier/Logger/CallFileTop.php index 1412782..fca02ab 100644 --- a/src/callnotifier/Logger/CallFileTop.php +++ b/src/callnotifier/Logger/CallFileTop.php @@ -99,9 +99,9 @@ class Logger_CallFileTop extends Logger_CallBase if ($this->callTypes == 'io') { $str .= $prefix; - $str .= str_pad($numstr, 20); + $str .= Functions::mb_str_pad($numstr, 20); } else { - $str .= ' ' . str_pad($numstr, 25); + $str .= ' ' . Functions::mb_str_pad($numstr, 25); } $str .= ' ' . date('H:i:s', $call->end - $call->start - 3600);