User "^demon" changed the status of MediaWiki.r94558.

Old Status: new
New Status: fixme

User "^demon" also posted a comment on MediaWiki.r94558.

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94558#c20862
Commit summary:

Tests for wfGetIP() follow up r89407

* wfGetIP() now support resetting its internal static variable. Thanks to
 Platonides which introduced this trick with r92960.
* Various tests for $_SERVER['REMOTE_ADDR'] and $wgCommandLineMode.

TODO:

- implements tests for XFF headers.


TEST PLAN:

$ ./phpunit.php --filter wfGetIP --testdox
PHPUnit 3.5.14 by Sebastian Bergmann.

wfGetIP
 [x] Get loopback address when in command line
 [x] Get from server remote addr
 [x] Lack of remote addr throw an exception
$

Comment:

Breaks unit tests
 PHP Notice:  Undefined index: SERVER_PROTOCOL in 
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/includes/Exception.php on 
line 185
 1. MWExceptionHandler::handle() 
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/includes/Exception.php:0
 2. MWExceptionHandler::report() 
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/includes/Exception.php:501
 3. MWException->report() 
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/includes/Exception.php:422
 4. MWException->reportHTML() 
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/includes/Exception.php:222

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to