{"action":"created","issue":{"url":"https://api.github.com/repos/cloudControl/buildpack-php/issues/33","labels_url":"https://api.github.com/repos/cloudControl/buildpack-php/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/cloudControl/buildpack-php/issues/33/comments","events_url":"https://api.github.com/repos/cloudControl/buildpack-php/issues/33/events","html_url":"https://github.com/cloudControl/buildpack-php/issues/33","id":88041085,"number":33,"title":"[custom-buildpack] Missing APCu extension for PHP >= 5.5 ","user":{"login":"holtkamp","id":776405,"avatar_url":"https://avatars.githubusercontent.com/u/776405?v=3","gravatar_id":"","url":"https://api.github.com/users/holtkamp","html_url":"https://github.com/holtkamp","followers_url":"https://api.github.com/users/holtkamp/followers","following_url":"https://api.github.com/users/holtkamp/following{/other_user}","gists_url":"https://api.github.com/users/holtkamp/gists{/gist_id}","starred_url":"https://api.github.com/users/holtkamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holtkamp/subscriptions","organizations_url":"https://api.github.com/users/holtkamp/orgs","repos_url":"https://api.github.com/users/holtkamp/repos","events_url":"https://api.github.com/users/holtkamp/events{/privacy}","received_events_url":"https://api.github.com/users/holtkamp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-13T17:56:35Z","updated_at":"2015-06-21T12:19:21Z","closed_at":"2015-06-21T12:19:21Z","body":"PHP 5.5 comes bundled with [opcache](http://php.net/manual/en/book.opcache.php), which is a replacement for the OPCODE part of [APC](http://php.net/manual/en/book.apc.php)\r\n\r\nEnabling ```opcache``` this can be done with an additional file: ```.buildpack/php/conf/opcache.ini```:\r\n\r\n```\r\n[OPcache]\r\nzend_extension = opcache.so\r\n```\r\n\r\nGreat! PHP files are now OPCODE cached.\r\n\r\nHowever, APC *also* offered a User Cache => a place to quickly store application information in memory. This is great when using a two-level cache, for example:\r\n\r\n- APC User Cache as a fast cache, not persisted, every redeploy of the container the cache is cleared\r\n- database as a slow cache, persistent, acts a fall back mechanism. \r\n\r\nFor PHP 5.5, [it is advised](http://jessesnet.com/development-notes/2014/php-55-opcache-apcu/) to use [APCu](https://pecl.php.net/package/APCu), the user part of APC. \r\n\r\nTrying to install it with ```composer.json```: \r\n\r\n    \"require\": {\r\n        \"php-64bit\": \"5.5.23\",\r\n        \"ext-apcu\": \"*\"\r\n\t}\r\n\t\r\nResults in a warning:\r\n\r\n```\r\n-----> Receiving push\r\n-----> Using php version 5.5.23\r\n-----> Installing composer dependencies...\r\nPHP Warning:  PHP Startup: Unable to load dynamic library '/srv/www/php-5.5.23/lib/php/extensions/apcu.so' - /srv/www/php-5.5.23/lib/php/extensions/apcu.so: cannot open shared object file: No such file or directory in Unknown on line 0\r\n```\r\n\r\nCan this extension be added to the list of allowed extensions? This way applications that used APC on PHP 5.4 will not break, since APCu is compatible. "},"comment":{"url":"https://api.github.com/repos/cloudControl/buildpack-php/issues/comments/113893373","html_url":"https://github.com/cloudControl/buildpack-php/issues/33#issuecomment-113893373","issue_url":"https://api.github.com/repos/cloudControl/buildpack-php/issues/33","id":113893373,"user":{"login":"holtkamp","id":776405,"avatar_url":"https://avatars.githubusercontent.com/u/776405?v=3","gravatar_id":"","url":"https://api.github.com/users/holtkamp","html_url":"https://github.com/holtkamp","followers_url":"https://api.github.com/users/holtkamp/followers","following_url":"https://api.github.com/users/holtkamp/following{/other_user}","gists_url":"https://api.github.com/users/holtkamp/gists{/gist_id}","starred_url":"https://api.github.com/users/holtkamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holtkamp/subscriptions","organizations_url":"https://api.github.com/users/holtkamp/orgs","repos_url":"https://api.github.com/users/holtkamp/repos","events_url":"https://api.github.com/users/holtkamp/events{/privacy}","received_events_url":"https://api.github.com/users/holtkamp/received_events","type":"User","site_admin":false},"created_at":"2015-06-21T12:19:21Z","updated_at":"2015-06-21T12:19:21Z","body":"Great, works as expected, closing issue"}}