I installed eAccelerator on my gentoo box after installing the new dev-lang/php overlay. When starting apache it would say that OnUpdateInt was an undefined symbol. I believe that in php5 the function onUpdateInt was essentially renamed to onupdatelong. I changed the code as follows: #ifndef ZEND_ENGINE_2 #define OnUpdateLong OnUpdateInt #endif to #ifndef ZEND_ENGINE_2 #define OnUpdateLong #endif After this change it works fine with php5. Reproducible: Always Steps to Reproduce: 1. emerge the new dev-lang/php package 2. emerge eaccelerator 3. restart apache and look at the error log Actual Results: the error message described above. Expected Results: loaded eaccelerator.so properly.
Eaccelerator doesn't really support PHP5 that well, especially not newer releases (like 5.1.0 fex.). We do not support Eaccelerator on PHP5, and furthermore if you want to use any extension with the new dev-lang/php packages you _MUST_ emerge it from either the dev-php4/ or dev-php5/ categories (depending on the PHP version you want them for). De facto we only have dev-php4/eaccelerator and NO dev-php5/eaccelerator, so we don't support (yet) Eaccelerator on PHP5, we will do that only when upstream has sorted all the problems with PHP5 support out. dev-php/eaccelerator is deprecated, don't use it. Short story: no Eaccelerator for dev-lang/php-5*, only available for dev-lang/php-4* as dev-php4/eaccelerator. Best regards, CHTEKK.
Closing. Please, consider dev-php5/pecl-apc instead for php5.