Re: [PHP-DEV] Getting an external param into a userspace streams filter...

[email protected] (Wez Furlong)
Newsgroups php.dev
Message-ID <[email protected]>
Hi David,

user filters are in a little bit of flux atm.

However, the idea is that the param argument will be altered to be a
zval (rather than just a string).

In the oncreate() method, the following member variables are available
to the filter:

string $this->filtername; // name of the filter
mixed $this->params;      // params passed from prepend/append func

Hope this helps; please only use current CVS for PHP 5 for playing
around with this stuff; if you run into problems let me (and Sara
<[email protected]>) know and we can sort them out.

--Wez.

On Thu, 27 Feb 2003, David Brown wrote:

> On Thu, Feb 27, 2003 at 09:42:24AM -0500, David Brown wrote:
> | On Thu, Feb 27, 2003 at 09:40:15AM -0500, David Brown wrote:
> | | Hi Wez, everyone:
> | |
> | | Is there (or will there ever be) a good way to transmit an extra
> | | parameter into a php_user_filter around the time that oncreate() is
> | | called? I've run into a couple cases where it'd be incredibly useful
> |
> | Nevermind. Seems I can't read this morning. Sorry about that.
>
> Well, perhaps I jumped to self-chastisement a bit too quick. There's a
> single string parameter that can be passed to stream_filter_append /
> stream_filter_prepend, but how would one retrieve this information once
> inside of the filter? Moreover, for passing arbitrary zvals in, would I
> have to resort some hackery using array keys from a global, or is there
> an easier way?
>
> Thanks in advance,
>
> - Dave 'Replies to self way too many times'
>   [email protected]
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.