I was also having this issue and found the solution in a single character in php.ini: be sure that the variables_order setting begins with "E" (mine was missing):<div><br></div><div><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 11px; white-space: pre-wrap; ">variables_order = "EGPCS"</span></div>

<div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre-wrap;"><br></span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre-wrap;">It looks like the issue was due to PHP's $ENV global being left empty due to this setting.  I'm guessing this is because of the default "production" php.ini that ships with the PHP distributed with MacPorts. </span></font></div>

<div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre-wrap;"><br></span></font></div><div><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 11px; white-space: pre-wrap;">I've posted a few additional links and error output on our development blog: <a href="http://echodittolabs.org/blog/2010/03/fixing-textmates-php-commands-macports-php">http://echodittolabs.org/blog/2010/03/fixing-textmates-php-commands-macports-php</a><br clear="all">

</span></font><br>-- <br><br>Ethan Winn<br><a href="mailto:ethan@echoditto.com">ethan@echoditto.com</a><br>
</div>