On 03/11/10 08:10, Tim Starling wrote:
I don't think JSON support is particularly important since it can easily be simulated, and I don't think you should use the filter extension in MediaWiki, regardless of whether it is supported.
Just out of curiosity, what is wrong with the filter extension ? From far away, it looks like it could be used to speed up some of our sanitization checks.
However, I can think of a good argument for moving to PHP 5.2, which is to stop the high rate of bit rot in 5.1 support. n particular, support for callbacks with double-colons to indicate static method calls:
call_user_func( 'Foo::bar' )
was added in PHP 5.2.3. Developers often use these, and don't realise that they are breaking PHP 5.1 support. So I think there's a good argument for making 5.2.3 the minimum.
Another example of bit rot: the trunk has 3 calls to array_fill_keys(), with no simulation in GlobalFunctions.php;
<snip>
Those are good points, Tim. Thanks! I like how PHP changes language definitions between minor versions.
Anyway, should we start right now to require 5.2.3 ?