[MacPorts] #39512: php55 @5.5.0_0+libedit: build needs --enable-opcache
#39512: php55 @5.5.0_0+libedit: build needs --enable-opcache -------------------------------------------------+------------------------- Reporter: macports.org@… | Owner: macports- Type: defect | tickets@… Priority: Normal | Status: new Component: ports | Milestone: Keywords: php php55 enable opcache | Version: 2.1.3 compilation flag | Port: php55 -------------------------------------------------+------------------------- PHP 5.5 introduces a new feature, OPcache: * http://php.net/opcache To use it with PHP 5.5, it must be built with --enable-opcache: * http://php.net/manual/en/opcache.installation.php However, the current php55 port does have this configured: {{{ $ php -v PHP 5.5.0 (cli) (built: Jun 22 2013 00:21:42) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0-dev, Copyright (c) 1998-2013 Zend Technologies with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans $ php -i | grep "^Configure Command" | fold -s Configure Command => './configure' '--prefix=/opt/local' '--mandir=/opt/local/share/man' '--infodir=/opt/local/share/info' '--program-suffix=55' '--includedir=/opt/local/include/php55' '--libdir=/opt/local/lib/php55' '--with-config-file- path=/opt/local/etc/php55' '--with-config-file-scan-dir=/opt/local/var/db/php55' '--disable-all' '--enable-bcmath' '--enable-ctype' '--enable-dom' '--enable-fileinfo' '--enable-filter' '--enable-hash' '--enable-json' '--enable-libxml' '--enable-pdo' '--enable-phar' '--enable-session' '--enable-simplexml' '--enable-tokenizer' '--enable-xml' '--enable-xmlreader' '--enable- xmlwriter' '--with-bz2=/opt/local' '--with-mhash=/opt/local' '--with-pcre-regex=/opt/local' '--with-libxml-dir=/opt/local' '--with-zlib=/opt/local' '--without-pear' '--disable-cgi' '--disable-fpm' '--enable-cli' '--with-libedit=/opt/local' }}} The source confirms this: * https://trac.macports.org/browser/trunk/dports/lang/php/Portfile#L147 Please build the php55 port with the --enable-opcache flag. Thanks for your consideration. -- Ticket URL: <https://trac.macports.org/ticket/39512> MacPorts <http://www.macports.org/> Ports system for OS X
#39512: php55 @5.5.0_0+libedit: build needs --enable-opcache -----------------------------+-------------------------- Reporter: macports.org@… | Owner: ryandesign@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: php55 | -----------------------------+-------------------------- Changes (by larryv@…): * owner: macports-tickets@… => ryandesign@… * keywords: php php55 enable opcache compilation flag => * type: defect => enhancement Comment: Thanks for the ticket. In the future, please Cc relevant port maintainers. -- Ticket URL: <https://trac.macports.org/ticket/39512#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#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 | -----------------------------+-------------------------- Changes (by ryandesign@…): * status: new => assigned * version: 2.1.3 => * type: enhancement => request * port: php55 => php-opcache Old description:
PHP 5.5 introduces a new feature, OPcache: * http://php.net/opcache
To use it with PHP 5.5, it must be built with --enable-opcache: * http://php.net/manual/en/opcache.installation.php
However, the current php55 port does have this configured:
{{{ $ php -v PHP 5.5.0 (cli) (built: Jun 22 2013 00:21:42) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0-dev, Copyright (c) 1998-2013 Zend Technologies with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans
$ php -i | grep "^Configure Command" | fold -s Configure Command => './configure' '--prefix=/opt/local' '--mandir=/opt/local/share/man' '--infodir=/opt/local/share/info' '--program-suffix=55' '--includedir=/opt/local/include/php55' '--libdir=/opt/local/lib/php55' '--with-config-file- path=/opt/local/etc/php55' '--with-config-file-scan-dir=/opt/local/var/db/php55' '--disable-all' '--enable-bcmath' '--enable-ctype' '--enable-dom' '--enable-fileinfo' '--enable-filter' '--enable-hash' '--enable-json' '--enable-libxml' '--enable-pdo' '--enable-phar' '--enable-session' '--enable-simplexml' '--enable-tokenizer' '--enable-xml' '--enable-xmlreader' '--enable- xmlwriter' '--with-bz2=/opt/local' '--with-mhash=/opt/local' '--with-pcre-regex=/opt/local' '--with-libxml-dir=/opt/local' '--with-zlib=/opt/local' '--without-pear' '--disable-cgi' '--disable-fpm' '--enable-cli' '--with-libedit=/opt/local' }}}
The source confirms this: * https://trac.macports.org/browser/trunk/dports/lang/php/Portfile#L147
Please build the php55 port with the --enable-opcache flag.
Thanks for your consideration.
New description: PHP 5.5 introduces a new feature, OPcache: * http://php.net/opcache To use it with PHP 5.5, it must be built with --enable-opcache: * http://php.net/manual/en/opcache.installation.php However, the current php55 port does have this configured: {{{ $ php -v PHP 5.5.0 (cli) (built: Jun 22 2013 00:21:42) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0-dev, Copyright (c) 1998-2013 Zend Technologies with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans $ php -i | grep "^Configure Command" | fold -s Configure Command => './configure' '--prefix=/opt/local' '--mandir=/opt/local/share/man' '--infodir=/opt/local/share/info' '--program-suffix=55' '--includedir=/opt/local/include/php55' '--libdir=/opt/local/lib/php55' '--with-config-file- path=/opt/local/etc/php55' '--with-config-file-scan-dir=/opt/local/var/db/php55' '--disable-all' '--enable-bcmath' '--enable-ctype' '--enable-dom' '--enable-fileinfo' '--enable-filter' '--enable-hash' '--enable-json' '--enable-libxml' '--enable-pdo' '--enable-phar' '--enable-session' '--enable-simplexml' '--enable-tokenizer' '--enable-xml' '--enable-xmlreader' '--enable- xmlwriter' '--with-bz2=/opt/local' '--with-mhash=/opt/local' '--with-pcre-regex=/opt/local' '--with-libxml-dir=/opt/local' '--with-zlib=/opt/local' '--without-pear' '--disable-cgi' '--disable-fpm' '--enable-cli' '--with-libedit=/opt/local' }}} The source confirms this: * browser:trunk/dports/lang/php/Portfile#L147 Please build the php55 port with the --enable-opcache flag. Thanks for your consideration. -- Comment: The page you linked to says this is an extension. So we need a new php- opcache port for it. -- Ticket URL: <https://trac.macports.org/ticket/39512#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#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 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. [[BR]]
Perhaps a possible solution is to compile the php55 port with `--enable- opcache`, but separate the configuration directive to a php55-opcache port? -- Ticket URL: <https://trac.macports.org/ticket/39512#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#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
#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 macports.org@…): Replying to [comment:4 ryandesign@…]:
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. [[BR]] Ah, thank you for clarifying -- seems like an elegant solution to the end user to give them the flexibility they might need. -Cheers
-- Ticket URL: <https://trac.macports.org/ticket/39512#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#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@…): Added php-opcache for php53 and php54 in r107248. Still thinking about how I want to handle the php55 version (as part of the php-opcache port, or as a subport of the php port). -- Ticket URL: <https://trac.macports.org/ticket/39512#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#39512: php-opcache: add port -----------------------------+-------------------------- Reporter: macports.org@… | Owner: ryandesign@… Type: request | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: php-opcache | -----------------------------+-------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: Added php55-opcache subport to php port in r107250. -- Ticket URL: <https://trac.macports.org/ticket/39512#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts