Yep, this is what I do on my server, too. But in XAMPP for the Mac, this simple fix doesn't work.
Actually, I have posted this issue here on Moodle.org and got a lot of good advice. The best advice was from Ken who gave me the instructions on how to recompile php. I just haven't figured out how to do this, yet.