[imp] Filtercode (HEAD) is killing existing filterdefinitions!

Michael M Slusarz slusarz@bigworm.colorado.edu
Mon, 19 Aug 2002 15:55:00 -0600


Quoting Jeff Tucker <jefft@wciatl.com>:

| --On Tuesday, August 06, 2002 3:58 PM -0600 Michael M Slusarz
| <slusarz@bigworm.colorado.edu> wrote:
| 
| >
| > Final note: it appears that when you register a function for shutdown,
| > PHP  essentially "compiles" the function at that instant and will use
| > that "compiled" function later.  Thus, if there is a class variable
| > inside  of that function, that variable will be used as it appears at
| the
| > time the  function is registered.  This appeared to be the problem in
| > this case.
| >
| > Workaround: see my latest commit for Filter.php;  Namely, don't use a
| > class  variable in the called shutdown function - use a "wrapper"
| > function instead.
| >
| > michael
| >
| 
| If this latest commit is in CVS HEAD, then I think it still doesn't work.

Fixed in CVS.  For an explanation of what I was doing wrong (stupid me) 
look at:
http://cvs.horde.org/co.php/imp/lib/Filter.php?login=2&r=1.26

michael

______________________________________________
Michael Slusarz [slusarz@bigworm.colorado.edu]
The University of Colorado at Boulder