Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10081 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52425 invoked by uid 1010); 25 May 2004 11:21:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 52383 invoked from network); 25 May 2004 11:21:43 -0000 Received: from unknown (HELO mx.thebrainroom.net) (65.200.24.98) by pb1.pair.com with SMTP; 25 May 2004 11:21:43 -0000 Received: by mx.thebrainroom.net (Postfix, from userid 517) id 29BD314880C0; Tue, 25 May 2004 04:21:42 -0700 (PDT) Received: from tron (obsidian.thebrainroom.net [82.133.1.142]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx.thebrainroom.net (Postfix) with ESMTP id 2C63F148809B; Tue, 25 May 2004 04:21:39 -0700 (PDT) To: "'Andi Gutmans'" , Date: Tue, 25 May 2004 12:21:38 +0100 Organization: The Brain Room Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 In-Reply-To: <5.1.0.14.2.20040525131321.03157008@127.0.0.1> Thread-Index: AcRCQQ9J171OY7CJRYexrfWh174WMQACNaGQ Message-ID: X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on jc.thebrainroom.net X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-Spam-Level: X-TBR-Filter: Virus scanned and defanged Subject: RE: [PHP-DEV] Problem in CLI From: wez@thebrainroom.com ("Wez Furlong") References: <5.1.0.14.2.20040525131321.03157008@127.0.0.1> 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 > >