I have been trying to install the new PHP 5.6 on Mac OS using HomeBrew. I have no problem but when I try to get it installed using --with-phpdbg it fails with the error:
sapi/phpdbg/phpdbg.c:1498:2: error: expected identifier or '('
if (cleaning || remote) {
^
I tried to reinstall homebrew and php a few times but nothing seems to fix the problem.