mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 15:34:12 +01:00
N°5122 - Update libs to new PHP requirements
This commit is contained in:
@@ -498,8 +498,11 @@ abstract class AbstractUnicodeString extends AbstractString
|
||||
)|[\p{Cc}\x7F]++)/xu', '', $s);
|
||||
}
|
||||
|
||||
// Non printable characters have been dropped, so wcswidth cannot logically return -1.
|
||||
$width += $this->wcswidth($s);
|
||||
$lineWidth = $this->wcswidth($s);
|
||||
|
||||
if ($lineWidth > $width) {
|
||||
$width = $lineWidth;
|
||||
}
|
||||
}
|
||||
|
||||
return $width;
|
||||
|
||||
Reference in New Issue
Block a user