Re: fgetss_state - seemingly unused
| From: | Wez Furlong | Date: | Tue, 19 Mar 2002 21:35:09 +0000 |
| Subject: | Re: fgetss_state - seemingly unused | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-81516@lists.php.net to get a copy of this message | ||
Well, that appears to be the intention, but I couldn't see
a single line where the state variable is assigned to; it's
passed by value, so I can't see how FG(fgetss_state) is ever
set to a value other than 0?
Have I missed it?
--Wez.
On 20/03/02, "Stefan Roehrich" <stefan@roehri.ch> wrote:
> On 2002-03-18 23:23:00, Wez Furlong wrote:
> > Does anyone know what purpose FG(fgetss_state) serves?
>
> As I remember it holds the internal state of php_strip_tags.
>
> > It doesn't appear to do anything other than hold the value
> > 0 for php_strip_tags.
> > Is this an oversight or a leftover of some old code?
>
> I doesn't look like the code has changed, the state ist always
> initialized to 0, but it's used in php_strip_tags to maintain the
> state between invocations from calls of {f,gz}getss().
>
> Stefan
>
> --
> Stefan Röhrich stefan@roehri.ch, sr@linux.de
> http://www.roehri.ch/~sr/