So, in the process of trying to bug fix an unexpected error, I have come to the conclusion that the following is somehow unacceptable in php:
$pattern = "/\/sc2\/en\/profile\/693604\/1\/EGIdrA\/ladder\/";
$subject = "\/sc2\/en\/profile\/693604\/1\/EGIdrA\/ladder\/";
preg_match($pattern, $subject, $result);
I have no idea how or why - all I know is that if I have this line, then various debugging echoes of various words at various locations both before and after this line are no longer echoed. There are no loops anywhere, so I am quite confused as to why this is causing a problem.