Okay, I can see that .... I guess there's no chance that PHP will be recompiled --with-mhash any time soon? That would be the best solution 🙂
Now, I'm not entirely sure what the problem is (and it's not something I'm in a position to experiment with myself); no doubt someone will point out something obvious...
Please clarify: when you say "exec() does not work", what do you mean, exactly? What happens instead? Any error messages?
Is that extra code you have up there accurate? All it seems to do is set a couple of environment variables to values that they already have. I could be wrong though, because if that code has no effect, then taking it out or putting it in shouldn't make any difference to whether the exec() runs or not.
Anyone? I'm baffled (and my eyes are starting to cross thinking about it).