Make TextMate run php from a different binary, not the original php
Under preferences, go into variables and update (or create) TM_PHP to point to your desired executable. E.g. I have /opt/local/bin/php because I'm using MacPorts.