https://bugzilla.wikimedia.org/show_bug.cgi?id=17329


Tim Starling <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]




--- Comment #2 from Tim Starling <[email protected]>  2009-04-30 04:02:35 
UTC ---
The problem is that $wgParser->parse() is not re-entrant. It could be made to
be re-entrant, by splitting the Parser class into a configuration class and a
context class. So $wgParser would be the configuration object, and it would
create a fresh context object, with a new set of strip markers, at each call to
$wgParser->parse(). This would mean that callback hooks would need to get the
context object rather than the configuration object, which could cause
large-scale b/c breakage if not done carefully.

I think juggling a whole lot of parser object, storing them in unlikely places
like $wgMessageCache, and requiring the user to guess which one to use, would
just be a recipe for more errors.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to