Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55371 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57826 invoked from network); 11 Sep 2011 21:47:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2011 21:47:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=krebs.seb@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@googlemail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:51226] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/11-49174-27C2D6E4 for ; Sun, 11 Sep 2011 17:47:31 -0400 Received: by bkar4 with SMTP id r4so2541366bka.29 for ; Sun, 11 Sep 2011 14:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=1C1Im/f8xMPlQrD28z2Od+ruEkyI2iEtMEkIKBMway8=; b=lrZ2+rBSbgnd71FJXUsSxBC4E5mYJlq9Qm7Tqo8CNOskCfImwcod9zo56RsnUp+Kc1 Fu/Qus6zdGBpM2bv+U8KeAjeQi6sNGiCsICfmckRxcqayeYDu18Xy8mAuGWVdbjw74+O bFJ1tCpLVq4sQq0VVdVNlJi28N8/eoBCI1HfI= Received: by 10.204.142.144 with SMTP id q16mr341770bku.267.1315777646084; Sun, 11 Sep 2011 14:47:26 -0700 (PDT) Received: from [192.168.24.2] (91-64-205-130-dynip.superkabel.de [91.64.205.130]) by mx.google.com with ESMTPS id v7sm693659bku.11.2011.09.11.14.47.24 (version=SSLv3 cipher=OTHER); Sun, 11 Sep 2011 14:47:25 -0700 (PDT) Message-ID: <4E6D2C6B.2060205@googlemail.com> Date: Sun, 11 Sep 2011 23:47:23 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13 MIME-Version: 1.0 To: internals@lists.php.net References: <4E6D0B5C.8030907@php.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Factory for Stream Wrappers From: krebs.seb@googlemail.com (Sebastian Krebs) Hi, Am 11.09.2011 23:40, schrieb Anthony Ferrara: > 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)? A resource is opened on `streamWrapper::dir_opendir()` or `streamWrapper::stream_open()` anyway, but not on Wrapper-instanciation. > 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 >>