{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/7537","repository_url":"https://api.github.com/repos/facebook/hhvm","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/7537/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/7537/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/7537/events","html_url":"https://github.com/facebook/hhvm/issues/7537","id":194282523,"number":7537,"title":"In \"PHP7 mode\", instanceof $type does not work for $type = 'Throwable'","user":{"login":"ezzatron","id":100152,"avatar_url":"https://avatars.githubusercontent.com/u/100152?v=3","gravatar_id":"","url":"https://api.github.com/users/ezzatron","html_url":"https://github.com/ezzatron","followers_url":"https://api.github.com/users/ezzatron/followers","following_url":"https://api.github.com/users/ezzatron/following{/other_user}","gists_url":"https://api.github.com/users/ezzatron/gists{/gist_id}","starred_url":"https://api.github.com/users/ezzatron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezzatron/subscriptions","organizations_url":"https://api.github.com/users/ezzatron/orgs","repos_url":"https://api.github.com/users/ezzatron/repos","events_url":"https://api.github.com/users/ezzatron/events{/privacy}","received_events_url":"https://api.github.com/users/ezzatron/received_events","type":"User","site_admin":false},"labels":[{"id":190045067,"url":"https://api.github.com/repos/facebook/hhvm/labels/php7%20incompatibility","name":"php7 incompatibility","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-08T09:12:30Z","updated_at":"2016-12-14T00:18:12Z","closed_at":null,"body":"FYI, this issue is preventing PHPUnit \"skipped\" tests from functioning, because it compares exceptions using `instanceof` against a variable containing `'Throwable'`.\r\n\r\n**EDIT:** Changed `hhvm.php.all=1` to `hhvm.php7.all=1`.\r\n\r\n### HHVM Version\r\n```\r\nHipHop VM 3.15.2 (rel)\r\nCompiler: tags/HHVM-3.15.2-0-g83ac3e5e3f5657be0cf4c55884044f86a7818b90\r\nRepo schema: 608339137764e8365964a1adaa7a27d125b6076f\r\n```\r\n\r\n### Standalone code, or other way to reproduce the problem\r\n\r\n**IMPORTANT:** Code must be run with the INI setting `hhvm.php7.all=1`.\r\n\r\n```php\r\n<?php\r\n\r\n$e = new Exception();\r\n$type = 'Throwable';\r\n\r\nvar_dump($e instanceof Throwable);\r\nvar_dump($e instanceof $type);\r\n```\r\n### Expected result\r\n```\r\nbool(true)\r\nbool(true)\r\n```\r\n### Actual result\r\nWith the INI setting `hhvm.php7.all=1`:\r\n```\r\nbool(true)\r\nbool(false)\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/266904088","html_url":"https://github.com/facebook/hhvm/issues/7537#issuecomment-266904088","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/7537","id":266904088,"user":{"login":"ezzatron","id":100152,"avatar_url":"https://avatars.githubusercontent.com/u/100152?v=3","gravatar_id":"","url":"https://api.github.com/users/ezzatron","html_url":"https://github.com/ezzatron","followers_url":"https://api.github.com/users/ezzatron/followers","following_url":"https://api.github.com/users/ezzatron/following{/other_user}","gists_url":"https://api.github.com/users/ezzatron/gists{/gist_id}","starred_url":"https://api.github.com/users/ezzatron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezzatron/subscriptions","organizations_url":"https://api.github.com/users/ezzatron/orgs","repos_url":"https://api.github.com/users/ezzatron/repos","events_url":"https://api.github.com/users/ezzatron/events{/privacy}","received_events_url":"https://api.github.com/users/ezzatron/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T00:18:12Z","updated_at":"2016-12-14T00:18:12Z","body":"@photodude Does that mean 3v4l.org has HHVM \"PHP 7 mode\" support now? How do you enable/disable it?"}}
{"actor":{"display_login":"ezzatron"}}