{"action":"created","issue":{"url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/1142","labels_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/1142/labels{/name}","comments_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/1142/comments","events_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/1142/events","html_url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/1142","id":105217196,"number":1142,"title":"Use SMW with PHP 7","user":{"login":"jongfeli","id":6680027,"avatar_url":"https://avatars.githubusercontent.com/u/6680027?v=3","gravatar_id":"","url":"https://api.github.com/users/jongfeli","html_url":"https://github.com/jongfeli","followers_url":"https://api.github.com/users/jongfeli/followers","following_url":"https://api.github.com/users/jongfeli/following{/other_user}","gists_url":"https://api.github.com/users/jongfeli/gists{/gist_id}","starred_url":"https://api.github.com/users/jongfeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jongfeli/subscriptions","organizations_url":"https://api.github.com/users/jongfeli/orgs","repos_url":"https://api.github.com/users/jongfeli/repos","events_url":"https://api.github.com/users/jongfeli/events{/privacy}","received_events_url":"https://api.github.com/users/jongfeli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-07T13:34:33Z","updated_at":"2015-09-25T05:44:29Z","closed_at":null,"body":"This is a question. Since the beta versions of **PHP 7** I have a copy of our wiki running on a web server that runs on PHP 7, this is for testing and speed comparison. The beta versions where \"buggy\" but with **RC1** & recently **RC2** things seem to run \"smoothly\", besides some **deprecated** messages from some extensions, not SMW. The performance increase under windows is almost irresistible, with the lack of **HHVM** support :). \r\n\r\nNothing is what it seems so my question is does **SMW** need any changes to its code before it can reliably run \"on\" **PHP 7**? Is there anything automatically tested yet against PHP 7? Thanks."},"comment":{"url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/comments/143132688","html_url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/1142#issuecomment-143132688","issue_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/1142","id":143132688,"user":{"login":"jongfeli","id":6680027,"avatar_url":"https://avatars.githubusercontent.com/u/6680027?v=3","gravatar_id":"","url":"https://api.github.com/users/jongfeli","html_url":"https://github.com/jongfeli","followers_url":"https://api.github.com/users/jongfeli/followers","following_url":"https://api.github.com/users/jongfeli/following{/other_user}","gists_url":"https://api.github.com/users/jongfeli/gists{/gist_id}","starred_url":"https://api.github.com/users/jongfeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jongfeli/subscriptions","organizations_url":"https://api.github.com/users/jongfeli/orgs","repos_url":"https://api.github.com/users/jongfeli/repos","events_url":"https://api.github.com/users/jongfeli/events{/privacy}","received_events_url":"https://api.github.com/users/jongfeli/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T05:44:29Z","updated_at":"2015-09-25T05:44:29Z","body":"Ok, that went smooth but the tests fail before they can finish, there seems to be a [bug](https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/tests/phpunit/Integration/ByJsonScript/ParserTestCaseProcessor.php#L62) in the code that handles the tests. If any more info is needed please ask.\r\n\r\n```\r\nPS C:\\Apache\\htdocs\\mediawiki\\extensions\\SemanticMediaWiki> composer phpunit --no-dev\r\n> php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist\r\nPHPUnit already present\r\n\r\nMediaWiki: 1.26alpha (Extension vendor autoloader)\r\nSemantic MediaWiki: 2.3 alpha (SMWSQLStore3, mysql)\r\n\r\nPHPUnit 4.8.9 by Sebastian Bergmann and contributors.\r\n\r\nRuntime:        PHP 7.0.0RC3\r\nConfiguration:  C:\\Apache\\htdocs\\mediawiki\\extensions\\SemanticMediaWiki\\phpunit.xml.dist\r\n\r\n............................................................   60 / 3074 (  1%)\r\n............................................................  120 / 3074 (  3%)\r\n............................................................  180 / 3074 (  5%)\r\n............................................................  240 / 3074 (  7%)\r\n............................................................  300 / 3074 (  9%)\r\n............................................................  360 / 3074 ( 11%)\r\n............................................................  420 / 3074 ( 13%)\r\n............................................................  480 / 3074 ( 15%)\r\n............................................................  540 / 3074 ( 17%)\r\n............................................................  600 / 3074 ( 19%)\r\n............................................................  660 / 3074 ( 21%)\r\n............................................................  720 / 3074 ( 23%)\r\n............................................................  780 / 3074 ( 25%)\r\n............................................................  840 / 3074 ( 27%)\r\n............................................................  900 / 3074 ( 29%)\r\n............................................................  960 / 3074 ( 31%)\r\n............................................................ 1020 / 3074 ( 33%)\r\n............................................................ 1080 / 3074 ( 35%)\r\n............................................................ 1140 / 3074 ( 37%)\r\n............................................................ 1200 / 3074 ( 39%)\r\n............................................................ 1260 / 3074 ( 40%)\r\n............................................................ 1320 / 3074 ( 42%)\r\n..................F...................................F..... 1380 / 3074 ( 44%)\r\n............................................................ 1440 / 3074 ( 46%)\r\n............................................................ 1500 / 3074 ( 48%)\r\n............................................................ 1560 / 3074 ( 50%)\r\n............................................................ 1620 / 3074 ( 52%)\r\n............................................................ 1680 / 3074 ( 54%)\r\n............................................................ 1740 / 3074 ( 56%)\r\n............................................................ 1800 / 3074 ( 58%)\r\n............................................................ 1860 / 3074 ( 60%)\r\n............................................................ 1920 / 3074 ( 62%)\r\n............................................................ 1980 / 3074 ( 64%)\r\n............................................................ 2040 / 3074 ( 66%)\r\n............................................................ 2100 / 3074 ( 68%)\r\n............................................................ 2160 / 3074 ( 70%)\r\n............................................................ 2220 / 3074 ( 72%)\r\n............................................................ 2280 / 3074 ( 74%)\r\n............................................................ 2340 / 3074 ( 76%)\r\n............................................................ 2400 / 3074 ( 78%)\r\n............................................................ 2460 / 3074 ( 80%)\r\n............................................................ 2520 / 3074 ( 81%)\r\n.........PHP Fatal error:  'break' not in the 'loop' or 'switch' context in \r\nC:\\Apache\\htdocs\\mediawiki\\extensions\\SemanticMediaWiki\\tests\\phpunit\\Integration\\ByJsonScript\\ParserTestCaseProcessor.php on line 62\r\nScript php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist handling the phpunit event returned with an error\r\n\r\n\r\n\r\n  [RuntimeException]\r\n  Error Output: PHP Fatal error:  'break' not in the 'loop' or 'switch' context in C:\\Apache\\htdocs\\mediawiki\\extensi\r\n  ons\\SemanticMediaWiki\\tests\\phpunit\\Integration\\ByJsonScript\\ParserTestCaseProcessor.php on line 62\r\n\r\n\r\n\r\nphpunit [--dev] [--no-dev] [args1] ... [argsN]\r\n```\r\n"}}