In libraries/Config.class.php, line 795; the static variable is_tppts is set to false.
In the next test, it passes (always), as null !== false
So the redirect goes around, and around, and https becomes httpss, httpsss, httpsss,.....
Suggest change static declaration to be static $is_https = null;
Seen on PHP version 5.3.0
Fixed in subversion, thanks for reporting.