Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55370 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56103 invoked from network); 11 Sep 2011 21:41:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2011 21:41:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qy0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:45686] helo=mail-qy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/C0-49174-BEA2D6E4 for ; Sun, 11 Sep 2011 17:40:59 -0400 Received: by qyl16 with SMTP id 16so383134qyl.8 for ; Sun, 11 Sep 2011 14:40:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=Bu6TeULSlxnl3WTyG+gRiq8zFxysTLt4wNtXutblLk4=; b=FiohKN5mkF5ad/6G4pbN4Iu+mntF6WDU5P3UZ03Vbr1PlgV9+kj6mFVZamFBGYntgS tfWAvqfBkM5MBpBlZrus21o0MYY/y0lRpbR0n2ZfFyLgTuDemPseaA/HSnB0DEPTqOEc Zez2n1i5KOL02jjbD9rPbC3W5UEcJGfsvKmPk= MIME-Version: 1.0 Received: by 10.229.28.200 with SMTP id n8mr806077qcc.291.1315777256369; Sun, 11 Sep 2011 14:40:56 -0700 (PDT) Sender: ircmaxell@gmail.com Received: by 10.229.247.84 with HTTP; Sun, 11 Sep 2011 14:40:56 -0700 (PDT) Received: by 10.229.247.84 with HTTP; Sun, 11 Sep 2011 14:40:56 -0700 (PDT) In-Reply-To: <4E6D0B5C.8030907@php.net> References: <4E6D0B5C.8030907@php.net> Date: Sun, 11 Sep 2011 17:40:56 -0400 X-Google-Sender-Auth: 1OsCs1AtrMbwgeA4ktsoyYBpFDE Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001636831708f82dba04acb14363 Subject: Re: [PHP-DEV] [RFC] Factory for Stream Wrappers From: ircmaxell@php.net (Anthony Ferrara) --001636831708f82dba04acb14363 Content-Type: text/plain; charset=ISO-8859-1 So, based on the rfc, does "must return an instance" mean that it can't throw an exception (ex: if a resource couldn't be opened)? On Sep 11, 2011 3:26 PM, "Sebastian Bergmann" wrote: > We (Arne Blankerts, Stefan Priebsch, Benjamin Eberlei, and I) have > worked on/with code where a factory for stream wrappers would be very > helpful. > > Earlier this year we talked to Ilia about this at ConFoo and he was open > to the idea but did not have the time to implement it. At FrOSCon we > talked to Johannes about this and he volunteered to implement it; which > he did. We now have an RFC at [1] and an initial patch at [2]. Benjamin > will write tests in the next couple of days. > > We know that we are "late to the party" but we do think that this would > be a good addition to PHP 5.4. > > -- > [1] https://wiki.php.net/rfc/streamwrapper-factory > [2] http://schlueters.de/~johannes/php/stream_factory.diff > > -- > Sebastian Bergmann Co-Founder and Principal Consultant > http://sebastian-bergmann.de/ http://thePHP.cc/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --001636831708f82dba04acb14363--