[xdebug-general] Re: support for DBGp stdout and stderr commands

From: Derick Rethans <derick[@]xdebug.org>
Date: Wed, 6 Aug 2008 10:15:09 +0200 (CEST)

On Mon, 4 Aug 2008, Darien Hager wrote:

> > PHP itself doesn't have stderr output, so obviously I can not implement
> > that.
>
> I may be thinking of the wrong context, but AFAIK php5 uses the funky
> url-esque file streams and the STDERR resource handle constant.
>
> fwrite(STDERR,"Hello World");
>
> file_put_contents("php://stderr","Hello again");

That doesn't work. Both php://stdout and php://stderr are just file
points for PHP - and do not go through the normal output buffering
mechanism that Xdebug can hook into.

regards,
Derick

-- 
Like Xdebug? Send a postcard: http://derickrethans.nl/xdebug_2_released.php
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
Received on Wed Aug 06 2008 - 10:15:10 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST