{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/7161","repository_url":"https://api.github.com/repos/facebook/hhvm","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/7161/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/7161/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/7161/events","html_url":"https://github.com/facebook/hhvm/issues/7161","id":160527728,"number":7161,"title":"[bug] T_OPEN_TAG_WITH_ECHO not detected correctly","user":{"login":"keradus","id":2716794,"avatar_url":"https://avatars.githubusercontent.com/u/2716794?v=3","gravatar_id":"","url":"https://api.github.com/users/keradus","html_url":"https://github.com/keradus","followers_url":"https://api.github.com/users/keradus/followers","following_url":"https://api.github.com/users/keradus/following{/other_user}","gists_url":"https://api.github.com/users/keradus/gists{/gist_id}","starred_url":"https://api.github.com/users/keradus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keradus/subscriptions","organizations_url":"https://api.github.com/users/keradus/orgs","repos_url":"https://api.github.com/users/keradus/repos","events_url":"https://api.github.com/users/keradus/events{/privacy}","received_events_url":"https://api.github.com/users/keradus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-15T21:25:39Z","updated_at":"2016-06-15T21:25:39Z","closed_at":null,"body":"`T_OPEN_TAG_WITH_ECHO` is not detected correctly by tokenizer\r\nOriginally reported here: https://github.com/facebook/hhvm/issues/4809\r\nBut the bugfix didn't handle all cases :(\r\n\r\n### HHVM Version\r\n3.9.1, don't know if lower as well\r\n\r\nLabels: php5 incompatibility\r\n\r\n### Standalone code, or other way to reproduce the problem\r\n```php\r\n<?php\r\n\r\n$a = token_get_all(\"<?=' ';\\n\");\r\n$b = token_get_all(\"<?\\n?><?=' ';\\n\");\r\n\r\n// both `<?=` should be T_OPEN_TAG_WITH_ECHO\r\nvar_dump(token_name($a[0][0]) === token_name($b[3][0]));\r\n```\r\n\r\n### Expected result\r\n`bool(true)`\r\n\r\n### Actual result\r\n`bool(false)`"}}
{"actor":{"display_login":"keradus"}}