Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48825 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61102 invoked from network); 18 Jun 2010 13:29:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jun 2010 13:29:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=rrichards@cdatazone.org; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=rrichards@cdatazone.org; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain cdatazone.org does not designate 207.58.142.213 as permitted sender) X-PHP-List-Original-Sender: rrichards@cdatazone.org X-Host-Fingerprint: 207.58.142.213 smtp2go.com Linux 2.6 Received: from [207.58.142.213] ([207.58.142.213:33346] helo=smtp2go.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/10-59924-EC47B1C4 for ; Fri, 18 Jun 2010 09:29:52 -0400 Received: from [67.158.171.203] (helo=Rob-Richardss-MacBook-Pro.local) by smtp2go.com with esmtp (Exim 4.69) (envelope-from ) id 1OPbdg-0000mJ-Br; Fri, 18 Jun 2010 13:29:44 +0000 Message-ID: <4C1B74C7.2020209@cdatazone.org> Date: Fri, 18 Jun 2010 09:29:43 -0400 User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) MIME-Version: 1.0 To: Hans-Peter Oeri CC: internals@lists.php.net References: <7E.F9.36621.35A2A1C4@pb1.pair.com> In-Reply-To: <7E.F9.36621.35A2A1C4@pb1.pair.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SMTP2Go-MailScanner-Information: Please contact support@smtp2go.com for more information X-SMTP2Go-MailScanner-ID: 1OPbdg-0000mJ-Br X-SMTP2Go-MailScanner: Found to be clean X-SMTP2Go-MailScanner-From: rrichards@cdatazone.org Subject: Re: [PHP-DEV] Why not attach XMLReader / XMLWriter to open php streams? From: rrichards@cdatazone.org (Rob Richards) Hans-Peter Oeri wrote: > Hi! > > As documented - and several searches did not lead to a different result > - XMLReader and XMLWriter can only work on an URI. That would be a php > stream opened and closed by themselves. > > For several workflows, e.g. with php://temp, it would be nice to be able > to "attach" XMLReader/XMLWriter to a pre-opened php stream. I would > describe it as letting them work "on a stream" instead of "on an uri". > > As I didn't find anything about it: Is there a reason for not supporting > 'stream resources'? Other extension, like e.g. curl, do. > > HPO > > There never was a real need for this. Can easily be done by creating your own stream wrapper and feeding the already opened streamed through it. Rob