After working with this filter for the last few days I came to realize that it really isn't taking advantage of the newer features of Apache 2. In addition it seems to have a flaw that would prevent it from working downstream from any other content-generation filter (imagine, for example, a mod_include page that embedded PHP script).
I think a good way to take advantage of the filter system would be to break the input stream into buckets of two types: constant strings and PHP script code. As flex/bison needs to be fed more data (from the yyinput function I think it's called) it could just read data out of buckets on the brigade. As it generates data, it could spit out buckets that are fed back into the brigade and passed downstream. The same would happen to the "constant string" data buckets: they could just be quickly passed down the filter chain. Is this feasible in the SAPI domain? I know very little about the SAPI, but will it allow me to override the equivalent of the yyinput function? -aaron -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php