{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/6747","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/6747/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/6747/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/6747/events","html_url":"https://github.com/facebook/hhvm/issues/6747","id":126166490,"number":6747,"title":"Exception does not implement Throwable / Throwable interface does not exist","user":{"login":"jurchiks","id":542788,"avatar_url":"https://avatars.githubusercontent.com/u/542788?v=3","gravatar_id":"","url":"https://api.github.com/users/jurchiks","html_url":"https://github.com/jurchiks","followers_url":"https://api.github.com/users/jurchiks/followers","following_url":"https://api.github.com/users/jurchiks/following{/other_user}","gists_url":"https://api.github.com/users/jurchiks/gists{/gist_id}","starred_url":"https://api.github.com/users/jurchiks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jurchiks/subscriptions","organizations_url":"https://api.github.com/users/jurchiks/orgs","repos_url":"https://api.github.com/users/jurchiks/repos","events_url":"https://api.github.com/users/jurchiks/events{/privacy}","received_events_url":"https://api.github.com/users/jurchiks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-12T12:13:40Z","updated_at":"2016-01-12T17:46:38Z","closed_at":null,"body":"test.php:\r\n```php\r\n<?php\r\nvar_dump(interface_exists('Throwable'));\r\n$e = new RuntimeException('test');\r\nvar_dump($e instanceof Exception);\r\nvar_dump($e instanceof Throwable);\r\n```\r\nOutput for `php7 test.php`:\r\n```\r\nbool(true)                                                                                                                                                                                                                                                                     \r\nbool(true)                                                                                                                                                                                                                                                                     \r\nbool(true)\r\n```\r\nOutput for `hhvm --no-config test.php -d hhvm.php7.all=true`:\r\n```\r\nbool(false)                                                                                                                                                                                                                                                                    \r\nbool(true)                                                                                                                                                                                                                                                                     \r\nbool(false)\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/170988978","html_url":"https://github.com/facebook/hhvm/issues/6747#issuecomment-170988978","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/6747","id":170988978,"user":{"login":"fredemmott","id":360927,"avatar_url":"https://avatars.githubusercontent.com/u/360927?v=3","gravatar_id":"","url":"https://api.github.com/users/fredemmott","html_url":"https://github.com/fredemmott","followers_url":"https://api.github.com/users/fredemmott/followers","following_url":"https://api.github.com/users/fredemmott/following{/other_user}","gists_url":"https://api.github.com/users/fredemmott/gists{/gist_id}","starred_url":"https://api.github.com/users/fredemmott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredemmott/subscriptions","organizations_url":"https://api.github.com/users/fredemmott/orgs","repos_url":"https://api.github.com/users/fredemmott/repos","events_url":"https://api.github.com/users/fredemmott/events{/privacy}","received_events_url":"https://api.github.com/users/fredemmott/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T17:46:38Z","updated_at":"2016-01-12T17:46:38Z","body":"`-d hhvm.php7.all=true` needs to go before test.php, otherwise it goes into test.php's argv instead of being considered an HHVM option:\r\n\r\n```\r\n hhvm --no-config -d hhvm.php7.all=true test.php\r\nbool(false)\r\nbool(true)\r\nbool(true)\r\n```\r\n\r\nSo RuntimeException does implement Throwable. `interface_exists()` fails because:\r\n\r\n```\r\n<?php\r\nvar_dump(interface_exists('Throwable'));\r\nvar_dump(interface_exists(Throwable::class));\r\nvar_dump(Throwable::class);\r\n[fredemmott@devbig349 ~/test] hhvm --no-config -d hhvm.php7.all=true test.php\r\nbool(false)\r\nbool(true)\r\nstring(21) \"__SystemLib\\Throwable\"\r\n```\r\n\r\nAlso an issue, but probably much less important."}}