Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52137 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10913 invoked from network); 8 May 2011 13:51:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 May 2011 13:51:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-ew0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:62153] helo=mail-ew0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/52-27292-ACF96CD4 for ; Sun, 08 May 2011 09:51:07 -0400 Received: by ewy2 with SMTP id 2so1340124ewy.29 for ; Sun, 08 May 2011 06:51:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=eow0Fcvk+6WgYzCW5OrYjeAAQepy9u4Q78gzjDEkgko=; b=ubyoC2XYqYeGABDdjV3yMc4Qj6/PCvREtVOW4EHX5kDl9FRV9ODvXgT3ZGRp8+T/5c dzT3iF+G2Jjpif6HPPgKAiOvp2KY8bAPKqCSXwXysYhM4ThtUwnxAzb4f5OiqrATZ0T6 abdgW8tMTi+yUxj9NU9jGZr9AZM6WnaFcnfhs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=EnSRFBdZpAet8e80iCzngw4cPjoJja9viwlmlJzCtAMhVGSJJ0Hv9BsmimXeJaO5uj Uu4VO/SjiZj4HJQnMCXYpJT/DgQ1nVSucnVzzoIjXAJ6QtLpaQX8RGJO/OhvmY7Vey0I orCLDBaqfzsp51Ro5oHrw5odEOaeAdQaGioT0= MIME-Version: 1.0 Received: by 10.14.16.102 with SMTP id g78mr2308851eeg.135.1304862662035; Sun, 08 May 2011 06:51:02 -0700 (PDT) Sender: tyra3l@gmail.com Received: by 10.14.127.79 with HTTP; Sun, 8 May 2011 06:51:01 -0700 (PDT) In-Reply-To: References: Date: Sun, 8 May 2011 15:51:01 +0200 X-Google-Sender-Auth: 2n10IojHjJQK8gZ9Y0kYCPgG-0Q Message-ID: To: Gustavo Lopes Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] adding low level file handling stuff From: info@tyrael.hu (Ferenc Kovacs) > I agree, I think that the best solution would be to > - add support for replacing a stream with another (a similar function > for=C2=A0http://php.net/manual/en/function.stream-copy-to-stream.php=C2= =A0or maybe > extending that), which would be available on all platforms, this would co= ver > my initial use-case. > - I think we should also provide the=C2=A0fileno functionality, because w= ithout > that, the php://fd is pretty useless. > - anything else, like dup2, fcntl should go to the dio or posix extension= , > that would be useful for some people. > what do you think? > Tyrael the fileno could be added to the http://php.net/manual/en/function.stream-get-meta-data.php this way we still kept it in the stream functions without introducing a new function for it. Tyrael