Page 1 of 1
PHP 4.3.10 - mmcache 2.4.6 - foreach() problem
Posted: Tue Apr 10, 2007 7:46 am
by Paio
Hello, I am having a problem when updating
php from 4.3.9 to 4.3.10. Some scripts encoded with mmcache fail, particularly
foreach() function . Looking for information I could read that it must to downgrade of this function from php 5, and the solution that very many forums and sites give in is to update the Zend
Optimizer to version
2.5.7 (so it can load encoded scripts correctly), but after trying a lot, it does not work.
I would be thankful if somebody could help me.
I dont use mmcache for optimizing, but I need to encript the code since it goes to the servers on my clients. Thanks again.

Posted: Tue Apr 10, 2007 8:00 am
by feyd
I'm not sure why this is a security question. Can you explain?
Posted: Tue Apr 10, 2007 8:15 am
by Maugrim_The_Reaper
Is it possible to switch to an alternative encoder? MMCache hasn't been supported for a number of years.
The alternative is to locate an MMCache binary compiled for PHP 4.3.10 (noting the last official MMCache release was for PHP 4.3.4). This might or might not work - encoding is likely to have undergone a few minor API changes MMCache can't cope with.
A better solution would be check out eAccelerator which forked from MMCache and so is a bit more familiar as an encoding platform. It's also actively maintained and up to date - it's likely a good long term solution unless you intend living on PHP 4.3.10 forever (or back to 4.3.9) forever.
Posted: Tue Apr 10, 2007 8:39 am
by Paio
feyd wrote:I'm not sure why this is a security question. Can you explain?
Because i think that encrypt source code is related to security, in fact, the scripts are in a computer that is not mine (the client's server).
Posted: Tue Apr 10, 2007 8:53 am
by Paio
Maugrim_The_Reaper wrote:Is it possible to switch to an alternative encoder? MMCache hasn't been supported for a number of years.
The alternative is to locate an MMCache binary compiled for PHP 4.3.10 (noting the last official MMCache release was for PHP 4.3.4). This might or might not work - encoding is likely to have undergone a few minor API changes MMCache can't cope with.
A better solution would be check out eAccelerator which forked from MMCache and so is a bit more familiar as an encoding platform. It's also actively maintained and up to date - it's likely a good long term solution unless you intend living on PHP 4.3.10 forever (or back to 4.3.9) forever.
Thanks for your answer.
I had been looking for an alternative, but i could not find a free encoder. I read in the official eAccelerator page that it not longer support the encoder feature (although its avaible, it contains a lot of bugs). If you know a specific version of php (greater to 4.3.9) that supports encoding scripts with eAccelerator, please tell me so i can test it.
Posted: Thu Apr 12, 2007 1:22 pm
by WaldoMonster
Here you can find the win32 compile of eAccelerator and eLoader for PHP 4.4.6:
http://www.sitebuddy.com/PHP/Accelerato ... ilds_php_4
Posted: Thu Apr 12, 2007 8:48 pm
by Paio
Thanks! it works perfect.