Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190948 - dev-php5/eaccelerator is blocking dev-php5/ZendOptimizer
Summary: dev-php5/eaccelerator is blocking dev-php5/ZendOptimizer
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-01 07:30 UTC by Sebastian Bauer
Modified: 2007-09-24 12:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Bauer 2007-09-01 07:30:43 UTC
eaccelerator is not suppose to block zend, eaccelerator only need to be loading before zend, this is my file to loading eaccelerator, zend and ioncube loader:

zend_extension_ts=/usr/lib/php5/lib/php/extensions/no-debug-zts-20060613/eaccelerator.so
zend_extension_ts=/usr/lib/php5/lib/php/extensions/no-debug-zts-20060613/ioncube_loader_lin_5.2_ts.so
eaccelerator.shm_size="28"
eaccelerator.cache_dir="/home/tmp/eacc/"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.debug="0"
eaccelerator.check_mtime="1"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="0"
eaccelerator.compress_level="1"
eaccelerator.keys="shm_and_disk"
eaccelerator.sessions="shm_and_disk"
eaccelerator.content="shm_and_disk"
zend_extension_ts=/usr/lib/php5/lib/php/extensions/no-debug-zts-20060613/ZendOptimizer.so
zend_optimizer.optimization_level=30
zend_optimizer.enable_loader=1


Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-01 07:41:26 UTC
There's no way to ensure what gets loaded first via what we have available in eclasses, plus - this is just totally pointless IMO. Use one or the other, or maintain it in your overlay, we are not going to support this at the moment.
Comment 2 Sebastian Bauer 2007-09-01 08:25:34 UTC
point of loading this 3 extention is that IPB using eaccelerator, another script is encoded by zend another by ion
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-09-01 08:36:18 UTC
(In reply to comment #2)
> point of loading this 3 extention is that IPB using eaccelerator, another
> script is encoded by zend another by ion

Well, that must be a PITA to maintain. :P

Anyway as noted above, this would require a significant rewrite of php-ext-base-r1.eclass to make it possible to ensure sane ordering and more flexibility with these php.ini files, otherwise people will get broken PHP, non-starting apache and all similar kind of nasty stuff. 

Maybe when PHP6 gets in. Thanks. :)
Comment 4 Hans Rakers 2007-09-24 12:04:46 UTC
I solved the ordering issue by putting all my eaccelerator related settings in a file called /etc/php/apache2-php5/ext/eaccelerator.ini and all my Zend Optimizer related settings in /etc/php/apache2-php5/ext/zendoptimizer.ini (and ofcourse linking them in ext-active)

The alphabet takes care of the ordering :) , since the letter e comes before the z (and the ini files seem to get imported by php in alphabetical order). This may be a nice fix for the ebuild for now.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-09-24 12:20:33 UTC
(In reply to comment #4)
We have some ideas including using ## prefixes for the config files (like, 30-eaccelerator.ini), nevertheless this requires making this functionality actually available in the appropriate eclasses and adjusting all ebuilds accordingly. Alphabetical ordering doesn't fly that much with different locales. :)