Yes, so you can do stuff like: fwrite(STDERR, "an error!") without having to
manually open and pass around the stream handle.

--Wez. 

> -----Original Message-----
> From: Andi Gutmans [mailto:[EMAIL PROTECTED] 
> Sent: 25 May 2004 13:07
> To: Wez Furlong; [EMAIL PROTECTED]
> Subject: RE: [PHP-DEV] Problem in CLI
> 
> Why are we creating a resource for these descriptors? Is it for the 
> constants in PHP?
> 
> Andi
> 
> At 12:21 PM 5/25/2004 +0100, Wez Furlong wrote:
> >When STDERR gets dtor'd, the descriptor is closed, so the 
> leak messages are
> >heading into the void.
> >
> >The reason for the change was so that PHP CLI could be 
> launched from inetd and
> >be able to close descriptors.
> >
> >A (somewhat hacky) fix would be to skip closing the 
> descriptor if it is the
> >stderr descriptor and if PHP is in request shutdown.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to