I was reading the commit[1] and bug report[2] where this came from and
am linking here since they're relevant and open in my browser already :) From a quick scan, the issue seems to be specifically here[3] where it sets the error flag after warning about output on stderr.
excuse me but from all your comments I'm lost. What should I do to get PhpBeatufier working?