This depends on which php binary you are actually accessing.
This will show you the complete path of the php binary you are accessing.
I'm going to go out on a limb here and guess that this will say /usr/local/bin/php.
Now do a:
which -a php
This will show all of the php binaries that are accessible in your defined paths. /usr/local/bin/php will probably be reported at the time (or whatever the results of the first command is). Try some of the others, giving the full path. I suspect that /usr/bin/php is the CGI version of your PHP install. Doing: