Anyone managed to modify php source so when php mod is running with apache and safe mode is on you still can open files beloging to user that runs apache (nobody)?

I found one solution

Perhaps someone that knows c++ better than me could do the same trick on php 5.x?