Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28880 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74680 invoked by uid 1010); 17 Apr 2007 11:19:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74665 invoked from network); 17 Apr 2007 11:19:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2007 11:19:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=tijnema@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tijnema@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.132.245 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tijnema@gmail.com X-Host-Fingerprint: 209.85.132.245 an-out-0708.google.com Received: from [209.85.132.245] ([209.85.132.245:38243] helo=an-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/63-06942-45DA4264 for ; Tue, 17 Apr 2007 07:19:50 -0400 Received: by an-out-0708.google.com with SMTP id c28so2486763ana for ; Tue, 17 Apr 2007 04:19:46 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=anfbBeWgfpDdf93nitw80eGF4bvQTnJ+PchNTWYSSiVzf7PZWsK+Pa0voz4p0OV62rkIb1Gk06b323J/lnk0JGHqvbv+opFyOYUfg9K6Xf40zkCjLtEPo2MG6Xlq10o3O3yqrwf83WGorDhxo2ESib56KHxU94I71dvtzud+1+s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=K3aNSMv/gP9GYW7YFdVmg41DSwRxTZc4Iy1Rq0D5grpnsMlUDYsGLc8JILoKqXBbUIWXs3a2jlXfa+FDSiQkRfO9gfH1AJaZudsKvAJ2QmXgqx9yKAeQa4H2/tYmaOED7TYroNj9myvwq64jE+4BqG7tgRIBA0n/Wgv+bxKdQHw= Received: by 10.100.59.20 with SMTP id h20mr963764ana.1176808786543; Tue, 17 Apr 2007 04:19:46 -0700 (PDT) Received: by 10.100.91.8 with HTTP; Tue, 17 Apr 2007 04:19:46 -0700 (PDT) Message-ID: Date: Tue, 17 Apr 2007 13:19:46 +0200 To: "PHP Developers Mailing List" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: [PHP-DEV] I make a patch, how I report? From: tijnema@gmail.com ("Tijnema !") On 4/16/07, Fernando chucre wrote: > Hello all, > > I build a patch for wrapper php fopen. In this patch I create a way for > the script access the filedescriptos opened by process. Ex: > > php file.php 3file_out.txt > > In this case the script can't read the filedescriptor 3 and 7. Not > have way for read or write in filedescriptor opends by precess. > > I make a way for read or write it. I modify the wrapper 'php' for fopen > function. (http://br.php.net/manual/en/wrappers.php.php) A create the > 'php:/fd/N' which N is the filedescriptor number. > > how to access fd 7 to write? > > ex: > > $fd = fopen("php://fd/7",'w'); > fwrite($fd,"test of write\n"); > fclose($fd); > ?> > > -- > Fernando Chure > PSL/CE Where's the patch? Tijnema