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"<sebast...@php.net> 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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php