back off r94558:
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 15 Aug 2011 21:45:18 +0000 (21:45 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 15 Aug 2011 21:45:18 +0000 (21:45 +0000)
commit56cc7371ddb24606e650f81e0c0205dda99d14cc
tree6304c76cf04b3066b808e2fde43da72b7a3724eb
parent13023f92a56bc76f5c716451215cd5780911f16b
back off r94558:
 - reverts ./includes/ProxyTools.php
 - marks tests broken

In our test suite, the first call to wfGetIP() set the static variable.
Hence the remaining of the code is only tested on the first call to it.
Resetting the static variable enlight a bug somewhere in our code where
we are calling wfGetIP() but can not reliably get an IP, somehow REMOTE_ADDR
does not exist and $wgCommandLineMode is disabled.
Will have to track this bug further when I got time.
includes/ProxyTools.php
tests/phpunit/includes/ProxyTools/wfGetIPTest.php