Summary: | dev-lang/php-5.5.0_beta1[opcache] does not install opcache.so zend extension | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Guillaume Castagnino <casta> |
Component: | Current packages | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Guillaume Castagnino
2013-03-22 20:45:27 UTC
From what I see here: https://blogs.oracle.com/opal/entry/using_php_5_5_s opcache.so cannot be built statically and can only be provided as a shared library. (In reply to comment #1) > From what I see here: https://blogs.oracle.com/opal/entry/using_php_5_5_s > opcache.so cannot be built statically and can only be provided as a shared > library. Good catch. I committed a revbump that should install the module and add the zend_extension entry to php.ini. A bit hackish, but should work. (In reply to comment #3) > I committed a revbump that should install the module and add the > zend_extension entry to php.ini. A bit hackish, but should work. Thanks ! I will test as soon as it reaches the rsync. Just a small suggestion: I just thought about one thing. It's also possible to add the "zend_extension=opcache.so" line in a separate ini file in "ext/" (and link to "ext-active/") subdirectory, just like external extension do. This may be easier to handle USE change rather than appending it directly to php.ini, isn't it ? If USE opcache changes, just automatically wipe the file, instead of needing an etc-update on php.ini. (In reply to comment #4) > (In reply to comment #3) > > I committed a revbump that should install the module and add the > > zend_extension entry to php.ini. A bit hackish, but should work. > > Thanks ! I will test as soon as it reaches the rsync. > > Just a small suggestion: > I just thought about one thing. It's also possible to add the > "zend_extension=opcache.so" line in a separate ini file in "ext/" (and link > to "ext-active/") subdirectory, just like external extension do. > This may be easier to handle USE change rather than appending it directly to > php.ini, isn't it ? If USE opcache changes, just automatically wipe the > file, instead of needing an etc-update on php.ini. I know. But it takes a bit more of an effort to do that, and I am not quite sure how upstream plans on handling this in later betas. If they keep requiring it to be compiled as a shared ext, I will drop it from the php ebuild and offer pecl-zendoptimizerplus for php 5.5 instead. Great, thanks for your work ! |