-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Daniel Barrett wrote:
Attached below is a test case that demonstrates the "always evaluate" behavior I was describing in vanilla MediaWiki 1.12.0 and ParserFunctions. The custom parser function #bugtest does two things:
[snip]
it does not display any message, but it STILL writes the timestamp, demonstrating that the #bugtest code is being run.
I can confirm that the timestamp *IS NOT* written for the false case in your example, on trunk, on 1.12 current branch, and 1.12.0 stock release.
Tested on Mac OS X 10.5, PHP 5.2.5.
Possibility 1:
* You switched in the old parser, which does not do this short circuiting (the new parser preprocessor which allows this is the biggest new feature in 1.12):
$wgParserConf['class'] = 'Parser_OldPP';
Possibility 2:
* You're running an old version of ParserFunctions which doesn't know how to plug in to the new parser preprocessor.
The versions in both trunk and branches/REL1_12 seem fine, I tested them both, so I don't know where you might have gotten an old one.
- -- brion vibber (brion @ wikimedia.org)