Subject: bug#17477: flymake-mode looks at wrong PHP binary

From: Glenn Morris <[email-masked]>
Date: Mon, 12 May 2014 15:39:10 -0400

Joe Borġ wrote:

> Yes, you're right - but why does that effect flymake-php?  I ask so I can
> try and fix it.

Because they load flymake.el, then clobber its flymake-php-init function
with their own version, which is identical to the default version apart
from using "/usr/bin/php" (by default), thus breaking flymake.

Simply (setq php-executable "php") and it should work.

I assume they want to cater for cases where "php" is not installed as
"php"; if there are any.