{"action":"created","issue":{"url":"https://api.github.com/repos/tholu/php-packer/issues/7","repository_url":"https://api.github.com/repos/tholu/php-packer","labels_url":"https://api.github.com/repos/tholu/php-packer/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/tholu/php-packer/issues/7/comments","events_url":"https://api.github.com/repos/tholu/php-packer/issues/7/events","html_url":"https://github.com/tholu/php-packer/issues/7","id":172141487,"number":7,"title":"Any string starting with underscore '_' will be replaced.","user":{"login":"maciejkrol","id":666924,"avatar_url":"https://avatars.githubusercontent.com/u/666924?v=3","gravatar_id":"","url":"https://api.github.com/users/maciejkrol","html_url":"https://github.com/maciejkrol","followers_url":"https://api.github.com/users/maciejkrol/followers","following_url":"https://api.github.com/users/maciejkrol/following{/other_user}","gists_url":"https://api.github.com/users/maciejkrol/gists{/gist_id}","starred_url":"https://api.github.com/users/maciejkrol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciejkrol/subscriptions","organizations_url":"https://api.github.com/users/maciejkrol/orgs","repos_url":"https://api.github.com/users/maciejkrol/repos","events_url":"https://api.github.com/users/maciejkrol/events{/privacy}","received_events_url":"https://api.github.com/users/maciejkrol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-19T14:18:04Z","updated_at":"2016-08-22T09:30:59Z","closed_at":null,"body":"Example code:\r\n\r\n```javascript\r\n/*global console*/\r\n\r\n(function () {\r\n    'use strict';\r\n\r\n    var var1 = 'this is correct';\r\n    var var2 = '_this will be encoded';\r\n    var var3 = 'and _here as _well.';\r\n\r\n    console.log(var1);\r\n    console.log(var2);\r\n    console.log(var3);\r\n\r\n}());\r\n```\r\n\r\nWhen obfuscated using:\r\n\r\n```php\r\n$packer = new \\Tholu\\Packer\\Packer($script, 'Normal', true, true, true);\r\n$script = $packer->pack();\r\n```\r\n\r\nGives this output when run:\r\n\r\n```plain\r\nthis is correct\r\n_0 will be encoded\r\nand _1 as _2.\r\n```\r\n\r\nThis is highly undesired and caused me a lot of troubles. \r\n"},"comment":{"url":"https://api.github.com/repos/tholu/php-packer/issues/comments/241360119","html_url":"https://github.com/tholu/php-packer/issues/7#issuecomment-241360119","issue_url":"https://api.github.com/repos/tholu/php-packer/issues/7","id":241360119,"user":{"login":"maciejkrol","id":666924,"avatar_url":"https://avatars.githubusercontent.com/u/666924?v=3","gravatar_id":"","url":"https://api.github.com/users/maciejkrol","html_url":"https://github.com/maciejkrol","followers_url":"https://api.github.com/users/maciejkrol/followers","following_url":"https://api.github.com/users/maciejkrol/following{/other_user}","gists_url":"https://api.github.com/users/maciejkrol/gists{/gist_id}","starred_url":"https://api.github.com/users/maciejkrol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciejkrol/subscriptions","organizations_url":"https://api.github.com/users/maciejkrol/orgs","repos_url":"https://api.github.com/users/maciejkrol/repos","events_url":"https://api.github.com/users/maciejkrol/events{/privacy}","received_events_url":"https://api.github.com/users/maciejkrol/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T09:30:59Z","updated_at":"2016-08-22T09:30:59Z","body":"Ok I made some more experiments to understand that. However, this still seems to be a bit strange for me."}}
{"actor":{"display_login":"maciejkrol"}}