{"action":"closed","issue":{"url":"https://api.github.com/repos/gplessis/dotdeb-php/issues/35","repository_url":"https://api.github.com/repos/gplessis/dotdeb-php","labels_url":"https://api.github.com/repos/gplessis/dotdeb-php/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/gplessis/dotdeb-php/issues/35/comments","events_url":"https://api.github.com/repos/gplessis/dotdeb-php/issues/35/events","html_url":"https://github.com/gplessis/dotdeb-php/issues/35","id":14896793,"number":35,"title":"unusable iconv","user":{"login":"daniel-kukiela","id":4561245,"avatar_url":"https://avatars.githubusercontent.com/u/4561245?v=3","gravatar_id":"","url":"https://api.github.com/users/daniel-kukiela","html_url":"https://github.com/daniel-kukiela","followers_url":"https://api.github.com/users/daniel-kukiela/followers","following_url":"https://api.github.com/users/daniel-kukiela/following{/other_user}","gists_url":"https://api.github.com/users/daniel-kukiela/gists{/gist_id}","starred_url":"https://api.github.com/users/daniel-kukiela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniel-kukiela/subscriptions","organizations_url":"https://api.github.com/users/daniel-kukiela/orgs","repos_url":"https://api.github.com/users/daniel-kukiela/repos","events_url":"https://api.github.com/users/daniel-kukiela/events{/privacy}","received_events_url":"https://api.github.com/users/daniel-kukiela/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2013-05-29T15:43:29Z","updated_at":"2016-07-21T18:26:56Z","closed_at":"2016-07-21T18:26:56Z","body":"Problem:\r\n--------------------------------------\r\n\r\nHi.\r\n\r\nThere are two bugs making iconv unusable:\r\nPHP: https://bugs.php.net/bug.php?id=63450&edit=1\r\nglibc: http://sourceware.org/bugzilla/show_bug.cgi?id=13541\r\nAs far as i know, they can be eliminated, when iconv is compiled with libiconv.\r\n\r\nIs it possible to compile iconv with libiconv instead of glibc?\r\nor\r\nIs it possible to compile php without compiled-in iconv (iconv as external extension) to make us able to replace iconv with self-compiled version (using libiconv) without recompile whole php?\r\n\r\nHow to check iconv (in PHP):\r\n--------------------------------------\r\n```php\r\nfunction testIconv1(){\r\n    \r\n\tset_error_handler('doNothing');\r\n    $r = iconv('utf-8', 'ascii//IGNORE', \"\\xCE\\xB1\" . str_repeat('a', 9000));\r\n    restore_error_handler();\r\n\r\n\tif ($r === false) {\r\n\t\t$code = \"UNUSABLE\";\r\n\t} elseif (($c = strlen($r)) < 9000) {\r\n\t\t$code = \"TRUNCATES\";\r\n\t} elseif ($c > 9000) {\r\n\t\t$code = \"BUGGY\";\r\n\t} else {\r\n\t\t$code = \"OK\";\r\n\t}\r\n\treturn $code;\r\n}\r\nfunction doNothing(){}\r\necho testIconv1();\r\n```\r\n\r\nRegards\r\nDaniel Kukieła"}}
{"actor":{"display_login":"gplessis"}}