Propagate the superglobals correctly to functions.