|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
d2kagw Smarty n00b
Joined: 25 Jul 2006 Posts: 2
|
Posted: Mon Mar 19, 2007 10:36 pm Post subject: |
|
|
bummer! |
|
Back to top |
|
core2 Smarty n00b
Joined: 21 Jan 2005 Posts: 4
|
Posted: Mon Feb 11, 2008 10:03 pm Post subject: eAccelerator problem |
|
|
I have the same problem like user OpenMacNews.
Quote: | [error] PHP Warning: Smarty error: cache_handler: PHP Extension "eaccelerator" (http://eaccelerator.net/HomeUk) not installed. in /xxx/yyy/smarty/Smarty.class.php on line 1095 |
I'm installed --with-eaccelerator-shared-memory.
Without loading cache handler - eaccelerator works fine.
Standart page generation time on my box, for my site is - 0,5 sec.
With eaccelerator first time generation is 0,2 sec.
Second time (when is cached) time is 0,015 sec.
I tested and Mysql cache handler, and it works fine too.
Are you guys are using eaccelerator cache handler, is it works for you?
My test box is apache2, php5 and last smarty. I tried suggestions from this thread.. nothing works for me.
Thank you for your help in advance.
EDIT:
Quote: | Notice: unserialize() [function.unserialize]: Error at offset 0 of 3 bytes in cache.eaccelerator.php on line 45 |
I'm stuck here now.
Recompiled eAccelerator with:
Quote: | ./configure --enable-eaccelerator --with-php-config=$PHP_PREFIX/bin/php-config --with-eaccelerator-shared-memory --with-eaccelerator-sessions --with-eaccelerator-content-caching --with-eaccelerator-disassembler --with-eaccelerator-debug --with-eaccelerator-userid --with-eaccelerator-doc-comment-inclusion
|
EDIT2:
Hello again, I'm on new stage now-
I've changed:
Quote: | if(!function_exists("eaccelerator")) { |
to:
Quote: | if(!function_exists("eaccelerator_get")) { |
and now:
Quote: | $attributes = unserialize($split[0]); |
to:
Quote: | $attributes = unserialize($split[1]); |
and there are no more warings and errors.
It probably works.
p.s. exuse my poor english |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|