Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48817 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87985 invoked from network); 17 Jun 2010 13:59:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jun 2010 13:59:50 -0000 X-Host-Fingerprint: 130.82.1.40 sigma.unisg.ch Received: from [130.82.1.40] ([130.82.1.40:10195] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/F9-36621-35A2A1C4 for ; Thu, 17 Jun 2010 09:59:47 -0400 Message-ID: <7E.F9.36621.35A2A1C4@pb1.pair.com> To: internals@lists.php.net Date: Thu, 17 Jun 2010 15:59:41 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Posted-By: 130.82.1.40 Subject: Why not attach XMLReader / XMLWriter to open php streams? From: hp@oeri.ch (Hans-Peter Oeri) 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