Author |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Sun 04 May '08 12:14 Post subject: eAccelerator 0.9.5.2 for PHP 5.2.6 |
|
|
We made eAccelerator 0.9.5.2 for PHP 5.2.6 available at our Downloads page.
eAccelerator is a PHP accelerator, optimizer, and dynamic content cache. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.
Steffen |
|
Back to top |
|
djc
Joined: 04 Dec 2007 Posts: 37
|
Posted: Mon 05 May '08 9:54 Post subject: |
|
|
Steffen,
What is the advantage of this over APC? |
|
Back to top |
|
Smitty
Joined: 03 Jan 2008 Posts: 197
|
Posted: Mon 05 May '08 17:49 Post subject: |
|
|
Thank you so much for providing the eAccelerator DLL. I tried building it myself in VS2008 and it reported 90 errors and 226 warnings.
Your DLL from the download area works great on both of my servers. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
|
Back to top |
|
djc
Joined: 04 Dec 2007 Posts: 37
|
Posted: Wed 07 May '08 9:50 Post subject: |
|
|
Thank you for the link. I recently installed APC and have been happy with the results.
I'll play with eAccelerator a bit and see how that works.
Thanks again. |
|
Back to top |
|
Smitty
Joined: 03 Jan 2008 Posts: 197
|
Posted: Wed 07 May '08 14:40 Post subject: |
|
|
Just out of curiosity...any tips on building this in VS 2008? I followed the instructions for Win32 included with eAccelerator and it reported 90 errors and 226 warnings when trying to compile.
Any ideas? |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Wed 07 May '08 19:16 Post subject: |
|
|
From Tom I received :
Problem is the 64-bit time structures in VS8+.
Defining the symbol _USE_32BIT_TIME_T causes VC8/9 to use 32-bit times like VC6.
-- Open .\ext\eaccelerator-0.9.5.2\win32\eAccelerator.sln with Visual Studio 2005/8
-- Set the configuration box to "Release PHP5"
-- Open [Properties] for the eAccelerator project go to [C/C++] [Preprocessor] [Preprocessor Definitions] - click on [...] add this word to the top of the list (before the 19 definitions which are already there) _USE_32BIT_TIME_T
-- Built eAccelerator
Steffen |
|
Back to top |
|
Smitty
Joined: 03 Jan 2008 Posts: 197
|
Posted: Thu 08 May '08 15:24 Post subject: |
|
|
Thanks for the help! The instructions worked and it properly compiled. I did still receive 137 warnings...mostly due to deprecated functions. The eaccelerator.dll works with PHP 5.2.6 just fine. One strange thing, the DLL file is smaller than the Apache Lounge version... 112 KB vs 120 KB. It seems to still work fine. |
|
Back to top |
|
adonat
Joined: 03 Jun 2008 Posts: 18
|
Posted: Wed 04 Jun '08 16:40 Post subject: |
|
|
Is the encoder included during compile in this build so I can use it?
Quote: |
Encoder.
When eA is compiled with encoder support, the eaccelerator_encode function can be used to encode php files. For more information can look at encode.php in the source distribution of eAccelerator. encoder.php is a command line script for encoding php files with this function. The encoder can be disabled with --without-eaccelerator-encoder at compile time. |
http://bart.eaccelerator.net/doc/phpdoc/eAccelerator/_encoder_php.html |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 04 Jun '08 16:46 Post subject: |
|
|
Do encoded files from eAcclerator run with zend optimizer? |
|
Back to top |
|
Millennium
Joined: 17 Apr 2006 Posts: 179 Location: Leiderdorp, NL, EU
|
Posted: Wed 04 Jun '08 17:52 Post subject: |
|
|
adonat wrote: | Is the encoder included during compile in this build so I can use it?
Quote: |
Encoder.
When eA is compiled with encoder support, the eaccelerator_encode function can be used to encode php files. For more information can look at encode.php in the source distribution of eAccelerator. encoder.php is a command line script for encoding php files with this function. The encoder can be disabled with --without-eaccelerator-encoder at compile time. |
http://bart.eaccelerator.net/doc/phpdoc/eAccelerator/_encoder_php.html |
Guess not.
For your information:
- the Encoder will be removed in EA.0.9.6
- the Encoder in EA 0.9.5 doesn't work with the PHP 5.x branche
- the Encdoer in EA 0.9.5 contains many bugs (meaning bugs aren't fixed since EA 0.9.4)
James (no they do not) |
|
Back to top |
|
adonat
Joined: 03 Jun 2008 Posts: 18
|
Posted: Wed 04 Jun '08 20:38 Post subject: |
|
|
James Blond wrote: | Do encoded files from eAccelerator run with zend optimizer? |
Thanks Millenium.
From what I have read James, you can run eAccelerator and Zend Optimizer together as long as you load eAccelerator first in (php.ini). Zend Optimizer is used basically to decode Zend Guard encoded PHP files. It doesn't really optimize anything. You need Zend Framework to do caching that is similar to what eAccelerator does. If you don't have any Zend Guard encoded files, and you use eAccelerator, it is recommended to turn Zend Optimizer off. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 04 Jun '08 23:24 Post subject: |
|
|
adonat wrote: | If you don't have any Zend Guard encoded files, and you use eAccelerator, it is recommended to turn Zend Optimizer off. |
Not exacly what I wanted to do. I wanted to use the econder.php from eAccelator that I don't have to buy zend guard. But you both showed me that it won't work. |
|
Back to top |
|