eLoader problem with PHP 5.2.0 & 5.2.1

April 2, 2007 - 13:45
eLoader problem with PHP 5.2.0 & 5.2.1
Posts: 1
Joined: 2007-04-02

For work, I have installed a php app that requires eLoader, but it errors out with a custom error the I need version 5.2.0 of e-loader library. I haven't worked with eLoader before, but I used this site to download the dll's and added them to the extentions listed in php.ini. eAccelorator doesn't seem to have a problem, but eLoader does. My development box runs Windows XP, and I have tried it with installations of both PHP 5.2.0 and 5.2.1.

Here is the error I receive when I run PHP from the command line with PHP 5.2.0:

PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'eLoader095_5.2.0.dll' in Unknown on line 0

and a similar one for PHP 5.2.1:

PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'eLoader095_i284_5.2.1.dll' in Unknown on line 0

Is there anything more I need to do than copy the files to my extension directory and add it to php.ini?

Thanks,
Trevor



April 24, 2007 - 14:36
Posts: 406
Joined: 2006-01-02

Trevor,

SoKoOLz is right. First get eAccelerator and then eLoader running. Once you have ea running (check with the control panel that files are being cached), try to load eloader in a similar way.

Here is a warning:

This is the comment under the 0.9.5 release notes (At that time 5.2 was not out yet so it probably also applies to all php versions 5.0 and up).

"WARNING: The encoder and loader DO NOT support php 5.1 nor php 5.0 and contain a lot of bugs for php 4. This is the last release in which the encoder/loader functionality will be available. Later a new encoder/loader might be included but there aren't any plans for that right now. "

So I would recommend to stick with working versions of php and eloader until you fully test it with PHP 5.x or EA 0.9.5.

Cheers,
Chris



April 19, 2007 - 21:04
Posts: 15
Joined: 2006-05-23

Normally, if you put those files in php\ext directory and add them o php.ini. it will work.

Here's my sample config in php.ini assuming that these eA extionsions are in c:\php\ext dir.

[eAaccelerator]
extension="eAccelerator095_i284_5.2.1.dll"
eaccelerator.shm_size="256"
eaccelerator.cache_dir="c:\tmp\eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.log_file = "c:\tmp\eaccelerator_log"
eaccelerator.name_space = ""
eaccelerator.check_mtime = "1"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"; ( 3600 = 1 hour)
eaccelerator.shm_prune_period="1800" ; ( testing 1800)
eaccelerator.shm_only="1" ;(testing 1 this seem noticeably faster?)
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys = "shm_and_disk"
eaccelerator.sessions = "shm_and_disk"
eaccelerator.content = "shm_and_disk"; (testing)
eaccelerator.allowed_admin_path = "D:\hosting\skzhosting.org\public_html\ea\"

I'm not sure abou the eLoader because I didnt use it.
But I hope this will help u.