[pmwiki-devel] strange conversions: a FmtPageName bug

Hans design5 at softflow.co.uk
Sun Mar 9 07:32:58 CDT 2008


Sunday, March 9, 2008, 2:31:43 AM, Patrick wrote:

> Yes, the fact that globals "leak" into FmtPageName is a bit of
> a pain, but I'd rather find ways to avoid the leaks than to
> significantly slow down one of the most fundamental (and often called)
> parts of the code.

How about 'defusing' potential leaking globals doing something like

$FmtV['$t'] = '$GLOBALS["t"]';

If I add that then '{$$text}' is not broken.
It seems an awful hack, and i have no idea if it has any negative
consequences. And it may need to be extended to other single character
globals at least.

Out of curiosity: what makes '$t' into a global?
It is hard to search the code for this.


Hans




More information about the pmwiki-devel mailing list