#39512: php-opcache: add port -----------------------------+-------------------------- Reporter: macports.org@… | Owner: ryandesign@… Type: request | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: php-opcache | -----------------------------+-------------------------- Comment (by ryandesign@…): Replying to [comment:3 macports.org@…]:
I'll defer to your expertise in how this functionality should be delivered, but it seems that while it can be compiled as a PECL extension for PHP 5.4 & 5.3, the documentation says that PHP 5.5 must be built with it:
From http://php.net/manual/en/opcache.installation.php:
PHP 5.5.0 and later
To use OPcache with PHP 5.5.0 or later, you must compile PHP with the --enable-opcache option, then use the zend_extension configuration directive to load the library at runtime.
The documentation has the same wording for all the extensions. Take curl for instance:
http://php.net/manual/en/curl.installation.php
To use PHP's cURL support you must also compile PHP --with-curl[=DIR]
We want PHP modules as a separate ports, so that having already installed php, you can later decide to easily add and remove extensions. This is accomplished by running configure and make and make install a separate time, with only the configure options to enable the given extension. -- Ticket URL: <https://trac.macports.org/ticket/39512#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X