Re: [RFC] Factory for Stream Wrappers

From: Date: Mon, 12 Sep 2011 14:40:20 +0000
Subject: Re: [RFC] Factory for Stream Wrappers
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-55386@lists.php.net to get a copy of this message
On Mon, 12 Sep 2011 14:43:33 +0100, Gustavo Lopes wrote:
Em Mon, 12 Sep 2011 12:53:13 +0100, Sebastian Bergmann <sebastian@php.net> escreveu:
Regarding state it is important to notice that PHP does *not* execute the constructor on all low level calls when instantiating the wrapper class - for whatever reason that is the case. Changing that behaviour would cause quite some side effects, with possible quite some BC breaks.
This is a bit off-topic, but could you elaborate on this (possibly submitting a bug report)? I see user_wrapper_opener trying to call the constructor: http://lxr.php.net/opengrok/xref/PHP_5_3/main/streams/userspace.c#298 So any failure to do this would be a bug.
Not sure if it's actual, but this behaviour is documented: http://de3.php.net/manual/en/streamwrapper.construct.php#94731 Christian

« previous php.internals (#55386) next »