while (!file_exists($bootstrapSearchDir . "/wp-load.php")) {
$bootstrapSearchDir = dirname($bootstrapSearchDir);
if (strpos($bootstrapSearchDir, $docRoot) === false)
break;
}
pinned it down to that code. on a windows server $docRoot = C:/ but in the $bootstrapSearchDir it is C:\ so the loop never breaks and eventually times out. I hacked a fix on my script by changing the code to this.
while (!file_exists($bootstrapSearchDir . "/wp-load.php")) {
$bootstrapSearchDir = dirname($bootstrapSearchDir);
if (strpos($bootstrapSearchDir, substr($docRoot,0,2)) === false)
break;
}