derickr/xdebug — pull request #31 by ngyuki (2012-09-14 13:35:53+00:00)
Title: Error output destination should check sapi.

Hi.

PHP is error output to STDERR only if sapi is cli or cgi.

But, xdebug do output to STDERR, independent of sapi, if display_errors is stderr.

As with PHP should check sapi.

[PHP main.c php_error_cb()](https://github.com/php/php-src/blob/master/main/main.c#L1078)