{"action":"created","issue":{"url":"https://api.github.com/repos/tchwork/utf8/issues/53","labels_url":"https://api.github.com/repos/tchwork/utf8/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/tchwork/utf8/issues/53/comments","events_url":"https://api.github.com/repos/tchwork/utf8/issues/53/events","html_url":"https://github.com/tchwork/utf8/issues/53","id":111440154,"number":53,"title":"phpunit failures","user":{"login":"bytehead","id":754921,"avatar_url":"https://avatars.githubusercontent.com/u/754921?v=3","gravatar_id":"","url":"https://api.github.com/users/bytehead","html_url":"https://github.com/bytehead","followers_url":"https://api.github.com/users/bytehead/followers","following_url":"https://api.github.com/users/bytehead/following{/other_user}","gists_url":"https://api.github.com/users/bytehead/gists{/gist_id}","starred_url":"https://api.github.com/users/bytehead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bytehead/subscriptions","organizations_url":"https://api.github.com/users/bytehead/orgs","repos_url":"https://api.github.com/users/bytehead/repos","events_url":"https://api.github.com/users/bytehead/events{/privacy}","received_events_url":"https://api.github.com/users/bytehead/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-14T16:43:24Z","updated_at":"2015-10-22T13:44:37Z","closed_at":null,"body":"I have some strange errors, basically related to my php-stack.\r\n\r\nMy installed php formulas (installed via homebrew on Mac OS X 10.10.5):\r\n- php56\r\n- php56-intl\r\n- php56-mcrypt\r\n- php56-mongo\r\n- php56-xdebug\r\n\r\nMy versions:\r\n- PHP 5.6.14\r\n- intl Version 1.1.0\r\n- ICU Version 55.1\r\n- ICU Data version 55.1\r\n- mcrypt 2.5.8\r\n- mongo 1.5.8\r\n- xdebug 2.3.3\r\n\r\nphpunit output:\r\n\r\n````bash\r\n$ phpunit\r\nPHPUnit 4.4.1 by Sebastian Bergmann.\r\n\r\nConfiguration read from dev/utf8/phpunit.xml.dist\r\n\r\n.........E.EE.......................E.E...E......EE.SSSSSSSSS..  63 / 247 ( 25%)\r\n...E.EE............E........................................... 126 / 247 ( 51%)\r\n.......................................................E....E.. 189 / 247 ( 76%)\r\nE.....E..E..............EEEEEEEEEEEEE..E..................\r\n\r\nTime: 628 ms, Memory: 23.25Mb\r\n\r\n1) Patchwork\\Tests\\PHP\\Shim\\IntlTest::testGrapheme_extract\r\ngrapheme_extract(): grapheme_extract: start not contained in string\r\n\r\ndev/utf8/tests/Patchwork/Tests/PHP/Shim/IntlTest.php:35\r\n\r\n2) Patchwork\\Tests\\PHP\\Shim\\IntlTest::testGrapheme_substr\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/tests/Patchwork/Tests/PHP/Shim/IntlTest.php:86\r\n\r\n3) Patchwork\\Tests\\PHP\\Shim\\IntlTest::testGrapheme_strpos\r\ngrapheme_strpos(): grapheme_strpos: Empty delimiter\r\n\r\ndev/utf8/tests/Patchwork/Tests/PHP/Shim/IntlTest.php:122\r\n\r\n4) Patchwork\\Tests\\TurkishUtf8Test::testStrCmp\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/src/Patchwork/Utf8.php:578\r\ndev/utf8/src/Patchwork/Utf8.php:574\r\ndev/utf8/tests/Patchwork/Tests/TurkishUtf8Test.php:40\r\n\r\n5) Patchwork\\Tests\\TurkishUtf8Test::testStristr\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/src/Patchwork/TurkishUtf8.php:74\r\ndev/utf8/tests/Patchwork/Tests/TurkishUtf8Test.php:60\r\n\r\n6) Patchwork\\Tests\\Utf8\\BootupTest::testFilterRequestInputs\r\nNormalizer::isNormalized(): Error converting string to UTF-16.\r\n\r\ndev/utf8/src/Patchwork/Utf8/Bootup.php:210\r\ndev/utf8/src/Patchwork/Utf8/Bootup.php:193\r\ndev/utf8/tests/Patchwork/Tests/Utf8/BootupTest.php:51\r\n\r\n7) Patchwork\\Tests\\Utf8\\HhvmTest::test6\r\ngrapheme_strlen(): Error converting input string to UTF-16\r\n\r\ndev/utf8/tests/Patchwork/Tests/Utf8/HhvmTest.php:37\r\n\r\n8) Patchwork\\Tests\\Utf8\\HhvmTest::test7\r\nNormalizer::normalize(): Error converting input string to UTF-16\r\n\r\ndev/utf8/tests/Patchwork/Tests/Utf8/HhvmTest.php:42\r\n\r\n9) Patchwork\\Tests\\Utf8Test::testSubstr\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/tests/Patchwork/Tests/Utf8Test.php:98\r\n\r\n10) Patchwork\\Tests\\Utf8Test::testStrCmp\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/src/Patchwork/Utf8.php:578\r\ndev/utf8/src/Patchwork/Utf8.php:574\r\ndev/utf8/tests/Patchwork/Tests/Utf8Test.php:156\r\n\r\n11) Patchwork\\Tests\\Utf8Test::testStrpos\r\ngrapheme_strpos(): grapheme_strpos: Empty delimiter\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:238\r\ndev/utf8/tests/Patchwork/Tests/Utf8Test.php:173\r\n\r\n12) Patchwork\\Tests\\Utf8Test::testFilter\r\nNormalizer::isNormalized(): Error converting string to UTF-16.\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:136\r\ndev/utf8/src/Patchwork/Utf8.php:118\r\ndev/utf8/tests/Patchwork/Tests/Utf8Test.php:412\r\n\r\n13) Utf8StrlenTest::test_utf8_invalid\r\ngrapheme_strlen(): Error converting input string to UTF-16\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:234\r\ndev/utf8/tests/php-utf8/Utf8StrlenTest.php:20\r\n\r\n14) Utf8StrposTest::test_utf8_invalid\r\ngrapheme_strpos(): Error converting input string to UTF-16\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:238\r\ndev/utf8/tests/php-utf8/Utf8StrposTest.php:28\r\n\r\n15) Utf8StrposTest::test_empty_str\r\ngrapheme_strpos(): grapheme_strpos: Offset not contained in string\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:238\r\ndev/utf8/tests/php-utf8/Utf8StrposTest.php:49\r\n\r\n16) Utf8StrrposTest::test_utf8_invalid\r\ngrapheme_strrpos(): Error converting input string to UTF-16\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:242\r\ndev/utf8/tests/php-utf8/Utf8StrrposTest.php:26\r\n\r\n17) Utf8StrrposTest::test_empty_str\r\ngrapheme_strrpos(): grapheme_strpos: Offset not contained in string\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:242\r\ndev/utf8/tests/php-utf8/Utf8StrrposTest.php:44\r\n\r\n18) Utf8SubstrTest::test_utf8\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/tests/php-utf8/Utf8SubstrTest.php:14\r\n\r\n19) Utf8SubstrTest::test_utf8_two\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/tests/php-utf8/Utf8SubstrTest.php:20\r\n\r\n20) Utf8SubstrTest::test_utf8_zero\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/tests/php-utf8/Utf8SubstrTest.php:26\r\n\r\n21) Utf8SubstrTest::test_utf8_zero_zero\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/tests/php-utf8/Utf8SubstrTest.php:32\r\n\r\n22) Utf8SubstrTest::test_start_great_than_length\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/tests/php-utf8/Utf8SubstrTest.php:38\r\n\r\n23) Utf8SubstrTest::test_compare_start_great_than_length\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/tests/php-utf8/Utf8SubstrTest.php:44\r\n\r\n24) Utf8SubstrTest::test_length_beyond_string\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/tests/php-utf8/Utf8SubstrTest.php:50\r\n\r\n25) Utf8SubstrTest::test_compare_length_beyond_string\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/tests/php-utf8/Utf8SubstrTest.php:56\r\n\r\n26) Utf8SubstrTest::test_start_negative\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/tests/php-utf8/Utf8SubstrTest.php:62\r\n\r\n27) Utf8SubstrTest::test_length_negative\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/tests/php-utf8/Utf8SubstrTest.php:68\r\n\r\n28) Utf8SubstrTest::test_start_length_negative\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/tests/php-utf8/Utf8SubstrTest.php:74\r\n\r\n29) Utf8SubstrTest::test_linefeed\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/tests/php-utf8/Utf8SubstrTest.php:80\r\n\r\n30) Utf8SubstrTest::test_long_length\r\ngrapheme_substr(): grapheme_substr: length is beyond start\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:223\r\ndev/utf8/tests/php-utf8/Utf8SubstrTest.php:86\r\n\r\n31) Utf8ToAsciiTest::test_invalid_char\r\nNormalizer::normalize(): Error converting input string to UTF-16\r\n\r\ndev/utf8/src/Patchwork/Utf8.php:44\r\ndev/utf8/tests/php-utf8/Utf8ToAsciiTest.php:26\r\n\r\nFAILURES!                                           \r\nTests: 247, Assertions: 472, Errors: 31, Skipped: 9.\r\n````\r\n\r\nIt's actually correlated to this line: https://github.com/php/php-src/blob/php-5.6.14/ext/intl/grapheme/grapheme_string.c#L854\r\n\r\nSeems to be a PHP bug for me.\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/tchwork/utf8/issues/comments/150227390","html_url":"https://github.com/tchwork/utf8/issues/53#issuecomment-150227390","issue_url":"https://api.github.com/repos/tchwork/utf8/issues/53","id":150227390,"user":{"login":"bytehead","id":754921,"avatar_url":"https://avatars.githubusercontent.com/u/754921?v=3","gravatar_id":"","url":"https://api.github.com/users/bytehead","html_url":"https://github.com/bytehead","followers_url":"https://api.github.com/users/bytehead/followers","following_url":"https://api.github.com/users/bytehead/following{/other_user}","gists_url":"https://api.github.com/users/bytehead/gists{/gist_id}","starred_url":"https://api.github.com/users/bytehead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bytehead/subscriptions","organizations_url":"https://api.github.com/users/bytehead/orgs","repos_url":"https://api.github.com/users/bytehead/repos","events_url":"https://api.github.com/users/bytehead/events{/privacy}","received_events_url":"https://api.github.com/users/bytehead/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T13:44:36Z","updated_at":"2015-10-22T13:44:36Z","body":"Negative.\r\nInstalled PHPUnit 5.0.7."}}