Temporarily fix tests.
All checks were successful
The build was successful.

This commit is contained in:
2018-09-23 17:51:47 +02:00
parent dd774be005
commit 08296110fb
6 changed files with 17 additions and 14 deletions

View File

@@ -13,11 +13,11 @@ class Program {
}
private function isUTF8(string $str) {
$b = 0;
$c = 0;
$bits = 0;
$len = strlen($str);
for($i = 0; $i < $len; $i++) {
int $b = 0;
int $c = 0;
int $bits = 0;
int $len = strlen($str);
for(int $i = 0; $i < $len; $i++) {
$c = ord($str[$i]);
if($c >= 128) {
if(($c >= 254)) return false;