{"action":"created","issue":{"url":"https://api.github.com/repos/emlog/emlog/issues/36","repository_url":"https://api.github.com/repos/emlog/emlog","labels_url":"https://api.github.com/repos/emlog/emlog/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/emlog/emlog/issues/36/comments","events_url":"https://api.github.com/repos/emlog/emlog/issues/36/events","html_url":"https://github.com/emlog/emlog/issues/36","id":131057216,"number":36,"title":"官网下的5.3.1版本包存在问题","user":{"login":"MikeCoder","id":3142935,"avatar_url":"https://avatars.githubusercontent.com/u/3142935?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeCoder","html_url":"https://github.com/MikeCoder","followers_url":"https://api.github.com/users/MikeCoder/followers","following_url":"https://api.github.com/users/MikeCoder/following{/other_user}","gists_url":"https://api.github.com/users/MikeCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeCoder/subscriptions","organizations_url":"https://api.github.com/users/MikeCoder/orgs","repos_url":"https://api.github.com/users/MikeCoder/repos","events_url":"https://api.github.com/users/MikeCoder/events{/privacy}","received_events_url":"https://api.github.com/users/MikeCoder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-03T15:24:49Z","updated_at":"2016-02-03T15:28:22Z","closed_at":null,"body":"![snip20160203_6](https://cloud.githubusercontent.com/assets/3142935/12786557/93fa2866-cacc-11e5-93ac-d6b8b9e91191.png)\r\n\r\n安装后直接使用，会出现如上错误。\r\n\r\n**解决办法**：\r\n\r\n`/src/include/lib/cache.php` 的195行\r\n```php\r\n194 while($row = $this->db->fetch_array($query)) {\r\n195\t$$row['option_name'] = $row['option_value'];\r\n196 }\r\n197 $query = $this->db->query(\"SELECT * FROM \" . DB_PREFIX . \"comment WHERE hide='n' ORDER BY date DESC LIMIT 0, $index_comnum\");\r\n```\r\n中的195行，改为: `${$row['option_name']} = $row['option_value'];`\r\n\r\n**系统环境**：\r\n```sh\r\n~  ᐅ php -v\r\nPHP 7.0.2 (cli) (built: Jan  7 2016 10:40:26) ( NTS )\r\nCopyright (c) 1997-2015 The PHP Group\r\nZend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies\r\n\r\n~  ᐅ uname -a\r\nDarwin Snail 15.3.0 Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64\r\n```"},"comment":{"url":"https://api.github.com/repos/emlog/emlog/issues/comments/179292913","html_url":"https://github.com/emlog/emlog/issues/36#issuecomment-179292913","issue_url":"https://api.github.com/repos/emlog/emlog/issues/36","id":179292913,"user":{"login":"vibbow","id":6408107,"avatar_url":"https://avatars.githubusercontent.com/u/6408107?v=3","gravatar_id":"","url":"https://api.github.com/users/vibbow","html_url":"https://github.com/vibbow","followers_url":"https://api.github.com/users/vibbow/followers","following_url":"https://api.github.com/users/vibbow/following{/other_user}","gists_url":"https://api.github.com/users/vibbow/gists{/gist_id}","starred_url":"https://api.github.com/users/vibbow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vibbow/subscriptions","organizations_url":"https://api.github.com/users/vibbow/orgs","repos_url":"https://api.github.com/users/vibbow/repos","events_url":"https://api.github.com/users/vibbow/events{/privacy}","received_events_url":"https://api.github.com/users/vibbow/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T15:28:22Z","updated_at":"2016-02-03T15:28:22Z","body":"https://github.com/emlog/emlog/blob/master/src/include/lib/cache.php#L186\r\n该问题在最新版里已经修复了。\r\n\r\n5.3.1 没有测试过和 PHP 7.0.x 的兼容性。你可以直接使用git里的最新版，是和 PHP 7.0.x 测试兼容的。"}}