Starting from PHP Version 4.3.10 with Zend Optimizer there seems to be an issue with nearly all versions of 4images:
As you can read
here,
here and
here, there are some changes to the foreach-construct
foreach($Array as $Value) doesn't work anymore.
Sure, from another point of view, it works, but returns always an indexed array with the key-value and the data inside the current array-Item, so that all further operations fail because they do not get their expected data.
A work-around is to switch to "foreach ($Array as $Key => $Value)" or using "while (list(, $Value) = each($Array))". Both solutions require a huge amount of nasty work (belive me, I did it already

)... From my point of view its an essential bug and needs to be fixed soon, but on the other hand there are not so many people out there using Zend Optimizer combined with your scripts

Beside the fact that I already fixed this issue once, I'm not involved into that problem - I'm only doing some small hosting (that's where I noticed this problem here) but my business is ASP (that's why there is Zend Optimizer on my servers)