{"action":"created","issue":{"url":"https://api.github.com/repos/voku/simple-cache/issues/19","repository_url":"https://api.github.com/repos/voku/simple-cache","labels_url":"https://api.github.com/repos/voku/simple-cache/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/voku/simple-cache/issues/19/comments","events_url":"https://api.github.com/repos/voku/simple-cache/issues/19/events","html_url":"https://github.com/voku/simple-cache/issues/19","id":416494175,"node_id":"MDU6SXNzdWU0MTY0OTQxNzU=","number":19,"title":"opcache function call will cause warnings in hosting environments","user":{"login":"hannob","id":990588,"node_id":"MDQ6VXNlcjk5MDU4OA==","avatar_url":"https://avatars1.githubusercontent.com/u/990588?v=4","gravatar_id":"","url":"https://api.github.com/users/hannob","html_url":"https://github.com/hannob","followers_url":"https://api.github.com/users/hannob/followers","following_url":"https://api.github.com/users/hannob/following{/other_user}","gists_url":"https://api.github.com/users/hannob/gists{/gist_id}","starred_url":"https://api.github.com/users/hannob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannob/subscriptions","organizations_url":"https://api.github.com/users/hannob/orgs","repos_url":"https://api.github.com/users/hannob/repos","events_url":"https://api.github.com/users/hannob/events{/privacy}","received_events_url":"https://api.github.com/users/hannob/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-03-03T09:21:21Z","updated_at":"2019-03-03T10:26:03Z","closed_at":"2019-03-03T10:26:03Z","author_association":"NONE","body":"For security reasons it's common to restrict the opcache API in shared webhosting environments.\r\n\r\nThis is usually no problem, because applications have little reason to call into the opcache api directly. But in your library (which recently got added as a dependency to the serendipity blog software) this is the case, and it will cause warnings like:\r\n```\r\nWarning: Zend OPcache API is restricted by \"restrict_api\" configuration directive in [path]/bundled-libs/voku/simple-cache/src/voku/cache/AdapterOpCache.php:32\r\n```\r\n\r\nSee here for a similar issue in wp super cache:\r\nhttps://github.com/Automattic/wp-super-cache/issues/536\r\n\r\nOne workaround would be to prefix the \\opcache_get_status() with @ to avoid the warning, i.e. change the code to:\r\n```\r\n            self::$hasCompileFileFunction = \\function_exists('opcache_compile_file') && !empty(@Bilge @\\opcache_get_status());\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/voku/simple-cache/issues/comments/469009202","html_url":"https://github.com/voku/simple-cache/issues/19#issuecomment-469009202","issue_url":"https://api.github.com/repos/voku/simple-cache/issues/19","id":469009202,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2OTAwOTIwMg==","user":{"login":"voku","id":264695,"node_id":"MDQ6VXNlcjI2NDY5NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/264695?v=4","gravatar_id":"","url":"https://api.github.com/users/voku","html_url":"https://github.com/voku","followers_url":"https://api.github.com/users/voku/followers","following_url":"https://api.github.com/users/voku/following{/other_user}","gists_url":"https://api.github.com/users/voku/gists{/gist_id}","starred_url":"https://api.github.com/users/voku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voku/subscriptions","organizations_url":"https://api.github.com/users/voku/orgs","repos_url":"https://api.github.com/users/voku/repos","events_url":"https://api.github.com/users/voku/events{/privacy}","received_events_url":"https://api.github.com/users/voku/received_events","type":"User","site_admin":false},"created_at":"2019-03-03T10:26:03Z","updated_at":"2019-03-03T10:26:03Z","author_association":"OWNER","body":"Thanks for the good bug report. :+1: Fixed in version 4.0.1."}}
{"actor":{"display_login":"voku"}}