{"action":"created","issue":{"url":"https://api.github.com/repos/websharks/comet-cache/issues/733","repository_url":"https://api.github.com/repos/websharks/comet-cache","labels_url":"https://api.github.com/repos/websharks/comet-cache/issues/733/labels{/name}","comments_url":"https://api.github.com/repos/websharks/comet-cache/issues/733/comments","events_url":"https://api.github.com/repos/websharks/comet-cache/issues/733/events","html_url":"https://github.com/websharks/comet-cache/issues/733","id":147124178,"number":733,"title":"PHP Warning: Zend OPcache API is restricted by \"restrict_api\"","user":{"login":"raamdev","id":53005,"avatar_url":"https://avatars.githubusercontent.com/u/53005?v=3","gravatar_id":"","url":"https://api.github.com/users/raamdev","html_url":"https://github.com/raamdev","followers_url":"https://api.github.com/users/raamdev/followers","following_url":"https://api.github.com/users/raamdev/following{/other_user}","gists_url":"https://api.github.com/users/raamdev/gists{/gist_id}","starred_url":"https://api.github.com/users/raamdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raamdev/subscriptions","organizations_url":"https://api.github.com/users/raamdev/orgs","repos_url":"https://api.github.com/users/raamdev/repos","events_url":"https://api.github.com/users/raamdev/events{/privacy}","received_events_url":"https://api.github.com/users/raamdev/received_events","type":"User","site_admin":false},"labels":[{"id":96134167,"url":"https://api.github.com/repos/websharks/comet-cache/labels/todo","name":"todo","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":{"login":"jaswsinc","id":1563559,"avatar_url":"https://avatars.githubusercontent.com/u/1563559?v=3","gravatar_id":"","url":"https://api.github.com/users/jaswsinc","html_url":"https://github.com/jaswsinc","followers_url":"https://api.github.com/users/jaswsinc/followers","following_url":"https://api.github.com/users/jaswsinc/following{/other_user}","gists_url":"https://api.github.com/users/jaswsinc/gists{/gist_id}","starred_url":"https://api.github.com/users/jaswsinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaswsinc/subscriptions","organizations_url":"https://api.github.com/users/jaswsinc/orgs","repos_url":"https://api.github.com/users/jaswsinc/repos","events_url":"https://api.github.com/users/jaswsinc/events{/privacy}","received_events_url":"https://api.github.com/users/jaswsinc/received_events","type":"User","site_admin":false},"assignees":[{"login":"jaswsinc","id":1563559,"avatar_url":"https://avatars.githubusercontent.com/u/1563559?v=3","gravatar_id":"","url":"https://api.github.com/users/jaswsinc","html_url":"https://github.com/jaswsinc","followers_url":"https://api.github.com/users/jaswsinc/followers","following_url":"https://api.github.com/users/jaswsinc/following{/other_user}","gists_url":"https://api.github.com/users/jaswsinc/gists{/gist_id}","starred_url":"https://api.github.com/users/jaswsinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaswsinc/subscriptions","organizations_url":"https://api.github.com/users/jaswsinc/orgs","repos_url":"https://api.github.com/users/jaswsinc/repos","events_url":"https://api.github.com/users/jaswsinc/events{/privacy}","received_events_url":"https://api.github.com/users/jaswsinc/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/websharks/comet-cache/milestones/38","html_url":"https://github.com/websharks/comet-cache/milestone/38","labels_url":"https://api.github.com/repos/websharks/comet-cache/milestones/38/labels","id":2010378,"number":38,"title":"Next Release","description":"Release Candidate due December 12th, 2016","creator":{"login":"raamdev","id":53005,"avatar_url":"https://avatars.githubusercontent.com/u/53005?v=3","gravatar_id":"","url":"https://api.github.com/users/raamdev","html_url":"https://github.com/raamdev","followers_url":"https://api.github.com/users/raamdev/followers","following_url":"https://api.github.com/users/raamdev/following{/other_user}","gists_url":"https://api.github.com/users/raamdev/gists{/gist_id}","starred_url":"https://api.github.com/users/raamdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raamdev/subscriptions","organizations_url":"https://api.github.com/users/raamdev/orgs","repos_url":"https://api.github.com/users/raamdev/repos","events_url":"https://api.github.com/users/raamdev/events{/privacy}","received_events_url":"https://api.github.com/users/raamdev/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":1,"state":"open","created_at":"2016-09-17T03:05:53Z","updated_at":"2016-12-21T18:42:54Z","due_on":"2016-12-16T08:00:00Z","closed_at":null},"comments":9,"created_at":"2016-04-09T12:07:58Z","updated_at":"2016-12-21T18:42:54Z","closed_at":"2016-12-21T18:42:54Z","body":"In some scenarios [`src/includes/closures/Shared/SysUtils.php#L85`](https://github.com/websharks/comet-cache/blob/160227/src/includes/closures/Shared/SysUtils.php#L85) may throw the following warning:\n\n> PHP Warning: Zend OPcache API is restricted by \"restrict_api\" configuration directive in /www/wp-content/plugins/comet-cache/src/includes/closures/Shared/SysUtils.php on line 85\n\nThis is most likely the result of stringent rules put in place with [`opcache.restrict_api`](http://php.net/manual/en/opcache.configuration.php#ini.opcache.restrict-api). So while `functionIsPossible('opcache_get_status')` on the previous line, the actual call to `opcache_get_status()` fails with a Warning.\n\nI recommend that we suppress these warnings with `@`:\n\n``` php\n    if (!is_array($status = @opcache_get_status(false)) || !$status) {\n        return ($status = false);\n    }\n```\n\n---\n\nReferencing: https://wordpress.org/support/topic/zend-opcache-api-is-restricted\n"},"comment":{"url":"https://api.github.com/repos/websharks/comet-cache/issues/comments/268605827","html_url":"https://github.com/websharks/comet-cache/issues/733#issuecomment-268605827","issue_url":"https://api.github.com/repos/websharks/comet-cache/issues/733","id":268605827,"user":{"login":"raamdev","id":53005,"avatar_url":"https://avatars.githubusercontent.com/u/53005?v=3","gravatar_id":"","url":"https://api.github.com/users/raamdev","html_url":"https://github.com/raamdev","followers_url":"https://api.github.com/users/raamdev/followers","following_url":"https://api.github.com/users/raamdev/following{/other_user}","gists_url":"https://api.github.com/users/raamdev/gists{/gist_id}","starred_url":"https://api.github.com/users/raamdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raamdev/subscriptions","organizations_url":"https://api.github.com/users/raamdev/orgs","repos_url":"https://api.github.com/users/raamdev/repos","events_url":"https://api.github.com/users/raamdev/events{/privacy}","received_events_url":"https://api.github.com/users/raamdev/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T18:42:54Z","updated_at":"2016-12-21T18:42:54Z","body":"**Comet Cache v161221** has been released and includes changes from this GitHub Issue. See the [v161221 announcement](https://cometcache.com/blog/comet-cache-v161221-now-available/) for further details.\r\n\r\n---\r\n\r\nThis issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#733)."}}
{"actor":{"display_login":"raamdev"}}