Download & Extend

eAccelerator problem: Call to undefined function eaccelerator_get()

Project:Cache Router
Version:6.x-1.0-rc1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (works as designed)

Issue Summary

Running eAccelerator v0.9.5.3, and getting

Fatal error: Call to undefined function eaccelerator_get() in /home/hotweb/public_html/sites/all/modules/cacherouter/engines/eacc.php on line 34

Any ideas?

Comments

#1

Status:active» needs work

Well, I wouldn't run eAccelerator 0.9.5.3 anyway, cause there is a serious ttl issue where cached data does not expire. But it sounds like you compiled it without the required content cache, or you did not add "extension=eaccelerator.so" into your php.ini file.

#2

eAccelerator runs as supposed - phpinfo(); shows it running, works on custom php scripts. Have installed it through Cpanel, but don't think it matters.

config is below

extension_dir = "/usr/local/lib/php/extensions/no-debug-zts-20060613"
extension = "eaccelerator.so"
eaccelerator.shm_size="40"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"
eaccelerator.shm_prune_period="1800"
eaccelerator.shm_only="1"
eaccelerator.compress="1"
eaccelerator.compress_level="1"

What I am missing?

#3

Honestly, I wouldn't run this version of eAccelerator with cache router. When cache is flushed, you will not see cache entries removed. The only version I have found to work is latest builds from SVN. I would seriously consider using another technology like memcache or file or APC.

#4

You are nothing missing. It's OK that you are receiving this error. Check following link and read why error appears:
http://eaccelerator.net/ticket/37

This isn't issue. eAccelerator was compiled without some features.

#5

The shared memory caching functions (eaccelerator_get and eaccelerator_put among others) have been removed from 0.9.6. You will need to stick with 0.9.5.3 and configure it appropriately:

./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config --with-eaccelerator-shared-memory

http://groups.google.com/group/eaccelerator/browse_thread/thread/b66c9ca...

Also, you can verify if the functions are there ahead of time with this bit of PHP code:

<?php
print_r
(get_extension_funcs( 'eaccelerator' ));
?>

#6

Status:needs work» closed (works as designed)

Since eaccelerator doesn't support variable cache anymore, closing this.

nobody click here