PHP 4.3.10 - mmcache 2.4.6 - foreach() problem

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
Paio
Forum Newbie
Posts: 4
Joined: Tue Apr 10, 2007 7:17 am

PHP 4.3.10 - mmcache 2.4.6 - foreach() problem

Post 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. :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'm not sure why this is a security question. Can you explain?
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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.
Paio
Forum Newbie
Posts: 4
Joined: Tue Apr 10, 2007 7:17 am

Post 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).
Paio
Forum Newbie
Posts: 4
Joined: Tue Apr 10, 2007 7:17 am

Post 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.
User avatar
WaldoMonster
Forum Contributor
Posts: 225
Joined: Mon Apr 19, 2004 6:19 pm
Contact:

Post 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
Paio
Forum Newbie
Posts: 4
Joined: Tue Apr 10, 2007 7:17 am

Post by Paio »

WaldoMonster wrote: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
Thanks! it works perfect.
Post Reply