Re: Getting an external param into a userspace streams filter...

From: Date: Thu, 27 Feb 2003 17:46:57 +0000
Subject: Re: Getting an external param into a userspace streams filter...
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-94635@lists.php.net to get a copy of this message
Hi Wez: On Thu, Feb 27, 2003 at 04:26:40PM +0000, Wez Furlong wrote: | 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 Excellent. :) I did finally find where $this->params gets set (in ext/standard/user_filters.c:242), but I figured a third reply to myself would probably just be embarassing. ;-) | 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 | <pollita@php.net>) know and we can sort them out. Will do. I'm currently wrapping the experimental streams stuff in a class, falling back to a user-space streams/filter implementation when the PHP 5 one isn't available. I'm currently using the oncreate() method (of my wrapper class) to transmit the parameters to the filter; I just wanted to make sure that this wouldn't bite me when I tried to slide the PHP filter implementation underneath it. Anyway, much thanks. - Dave dave@codewhore.org

« previous php.dev (#94635) next »