Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10083 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86193 invoked by uid 1010); 25 May 2004 12:06:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 86140 invoked from network); 25 May 2004 12:06:54 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 25 May 2004 12:06:54 -0000 Received: (qmail 9512 invoked from network); 25 May 2004 12:06:52 -0000 Received: from int.zend.com (HELO AndiNotebook.zend.com) (10.1.1.1) by int.zend.com with SMTP; 25 May 2004 12:06:52 -0000 Message-ID: <5.1.0.14.2.20040525150630.0618ff00@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 25 May 2004 15:06:53 +0300 To: "Wez Furlong" , In-Reply-To: References: <5.1.0.14.2.20040525131321.03157008@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: RE: [PHP-DEV] Problem in CLI From: andi@zend.com (Andi Gutmans) 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. > >--Wez. > > > -----Original Message----- > > From: Andi Gutmans [mailto:andi@zend.com] > > Sent: 25 May 2004 11:14 > > To: internals@lists.php.net > > Subject: [PHP-DEV] Problem in CLI > > > > The following script: > > > error_reporting(E_ALL); > > leak(100); > > print "hello\n"; > > > > Doesn't report a leak in CLI mode but it does in CGI. It > > seems that stderr > > and stdout file descriptors are getting screwed up in CLI. I remember > > someone messing around with this. > > Any ideas? > > > > Thanks, > > > > Andi > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > >