mediawiki-extensions-AbuseF.../tests
Bartosz Dziewoński e79b45b71f Improve ignoring short-circuited operations
Previously, 'false & a == b' would actually execute the comparison and
count it against the condition limit, while 'false & (a == b)' wouldn't.
They behave the same now.

mShortCircuit was only checked for the most potentially expensive
operations (computing functions and getting variables), all the other
operations on bogus values generated by this would be executed and the
results ignored later.

This probably doesn't noticeably improve performance, but it corrects
how the condition limit is counted.

Bug: T43693
Change-Id: Id1d5f577b14b6ae6d987ded12689788eb7922474
2016-04-09 16:25:52 +02:00
..
parserTests Improve ignoring short-circuited operations 2016-04-09 16:25:52 +02:00
phpunit Improve ignoring short-circuited operations 2016-04-09 16:25:52 +02:00
legacyParserTest.php Allow running the AbuseFilter parser tests via phpunit 2013-07-08 19:22:43 +02:00