Fix phpdbg output when outputting via php with active output handlers