{"action":"created","issue":{"url":"https://api.github.com/repos/oyejorge/less.php/issues/237","labels_url":"https://api.github.com/repos/oyejorge/less.php/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/oyejorge/less.php/issues/237/comments","events_url":"https://api.github.com/repos/oyejorge/less.php/issues/237/events","html_url":"https://github.com/oyejorge/less.php/pull/237","id":98842481,"number":237,"title":"fix override mbstring.internal_encoding","user":{"login":"pafnuty","id":1635679,"avatar_url":"https://avatars.githubusercontent.com/u/1635679?v=3","gravatar_id":"","url":"https://api.github.com/users/pafnuty","html_url":"https://github.com/pafnuty","followers_url":"https://api.github.com/users/pafnuty/followers","following_url":"https://api.github.com/users/pafnuty/following{/other_user}","gists_url":"https://api.github.com/users/pafnuty/gists{/gist_id}","starred_url":"https://api.github.com/users/pafnuty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pafnuty/subscriptions","organizations_url":"https://api.github.com/users/pafnuty/orgs","repos_url":"https://api.github.com/users/pafnuty/repos","events_url":"https://api.github.com/users/pafnuty/events{/privacy}","received_events_url":"https://api.github.com/users/pafnuty/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-03T21:33:57Z","updated_at":"2015-08-04T19:11:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/oyejorge/less.php/pulls/237","html_url":"https://github.com/oyejorge/less.php/pull/237","diff_url":"https://github.com/oyejorge/less.php/pull/237.diff","patch_url":"https://github.com/oyejorge/less.php/pull/237.patch"},"body":"Test case:\r\n```\r\nmbstring.internal_encoding = UTF-8\r\nmbstring.func_overload = 2 (or 4 or 7)\r\n```\r\nIf i use `@import`\r\n```\r\n// main file contains:\r\n@import \"00-variables\"; // in this file contains cyrillic text\r\n@import \"01-mixins\";\r\n@import \"02-grid\";\r\n```\r\nFor clarity, the screenshots of what I found out during the long process of digging in the code.\r\nNumbers indicate the anticipated order of outputting debug text.\r\nParse.php:\r\n![wdomainslessphp loclocalcncompilerlessparser php lessphp loc - sublime text](https://cloud.githubusercontent.com/assets/1635679/9048201/f30e140c-3a3f-11e5-889b-615ad535711d.png)\r\nOutput:\r\n![lessphp loc opera](https://cloud.githubusercontent.com/assets/1635679/9048203/fa641f30-3a3f-11e5-978f-ef4e2db474a1.png)\r\n\r\nThus, only the first (main) file is processed correctly encoded, and the other is encoded, the default on the server\r\n"},"comment":{"url":"https://api.github.com/repos/oyejorge/less.php/issues/comments/127724622","html_url":"https://github.com/oyejorge/less.php/pull/237#issuecomment-127724622","issue_url":"https://api.github.com/repos/oyejorge/less.php/issues/237","id":127724622,"user":{"login":"oyejorge","id":1043524,"avatar_url":"https://avatars.githubusercontent.com/u/1043524?v=3","gravatar_id":"","url":"https://api.github.com/users/oyejorge","html_url":"https://github.com/oyejorge","followers_url":"https://api.github.com/users/oyejorge/followers","following_url":"https://api.github.com/users/oyejorge/following{/other_user}","gists_url":"https://api.github.com/users/oyejorge/gists{/gist_id}","starred_url":"https://api.github.com/users/oyejorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oyejorge/subscriptions","organizations_url":"https://api.github.com/users/oyejorge/orgs","repos_url":"https://api.github.com/users/oyejorge/repos","events_url":"https://api.github.com/users/oyejorge/events{/privacy}","received_events_url":"https://api.github.com/users/oyejorge/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T19:11:11Z","updated_at":"2015-08-04T19:11:11Z","body":"Looks like the configuration had an invalid setting that was no longer tolerated. Fixed it, but [Scrutinizer give's this](https://scrutinizer-ci.com/g/oyejorge/less.php/inspections/3909be55-320b-434f-bd0c-61f51b04e755/issues/files/lib/Less/Parser.php?status=new&orderField=path&order=asc):\r\n\r\n> The property $mb_internal_encoding was declared of type boolean, but \r\n> ini_get('mbstring.internal_encoding') is of type string. Maybe add a type cast?"}}