Skip to content

Strings::webalize() returns an empty string on Alpine Linux #109

@mochja

Description

@mochja

I think this is due to musl implementation of iconv.

bash-4.3# vendor/bin/tester tests -p php -c /etc/php/php.ini
 _____ ___  ___ _____ ___  ___
|_   _/ __)( __/_   _/ __)| _ )
  |_| \___ /___) |_| \___ |_|_\  v1.7.1

PHP 7.0.6 | php -c '/etc/php/php.ini' | 8 threads

ss...............................sssssss.Fs...............F......................F......F......................F.F......

-- FAILED: Nette\Utils\Json::encode() | tests/Utils/Json.encode().phpt
   Failed: Nette\Utils\JsonException was expected, but none was thrown

   in tests/Utils/Json.encode().phpt(39) Tester\Assert::exception()

-- FAILED: Nette\Object undeclared method. | tests/Utils/Object.undeclaredMethod.phpt
   Failed: Nette\MemberAccessException was expected but got Nette\NotSupportedException (PHP extension GD is not loaded.)

   in tests/Utils/Object.undeclaredMethod.phpt(52) Tester\Assert::exception()

-- FAILED: Nette\SmartObject undeclared method. | tests/Utils/SmartObject.undeclaredMethod.phpt
   Failed: Nette\MemberAccessException was expected but got Nette\NotSupportedException (PHP extension GD is not loaded.)

   in tests/Utils/SmartObject.undeclaredMethod.phpt(54) Tester\Assert::exception()

-- FAILED: Nette\Utils\Strings::chr() | tests/Utils/Strings.chr().phpt
   Exited with error code 255 (expected 0)
   E_NOTICE: iconv(): Wrong charset, conversion from `UTF-32BE' to `UTF-8//IGNORE' is not allowed

   in src/Utils/Strings.php(57)
   in src/Utils/Strings.php(57) iconv()
   in tests/Utils/Strings.chr().phpt(14) Nette\Utils\Strings::chr()

-- FAILED: Nette\Utils\Strings::toAscii() | tests/Utils/Strings.toAscii().phpt
   Exited with error code 255 (expected 0)
   E_NOTICE: iconv(): Wrong charset, conversion from `UTF-8' to `ASCII//TRANSLIT//IGNORE' is not allowed

   in src/Utils/Strings.php(185)
   in src/Utils/Strings.php(185) iconv()
   in tests/Utils/Strings.toAscii().phpt(14) Nette\Utils\Strings::toAscii()

-- FAILED: Nette\Utils\Strings::webalize() | tests/Utils/Strings.webalize().phpt
   Exited with error code 255 (expected 0)
   E_NOTICE: iconv(): Wrong charset, conversion from `UTF-8' to `ASCII//TRANSLIT//IGNORE' is not allowed

   in src/Utils/Strings.php(185)
   in src/Utils/Strings.php(185) iconv()
   in src/Utils/Strings.php(201) Nette\Utils\Strings::toAscii()
   in tests/Utils/Strings.webalize().phpt(14) Nette\Utils\Strings::webalize()


FAILURES! (120 tests, 6 failures, 10 skipped, 1.1 seconds)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions