Yeah, that sucks too. But we could maybe fix $_SERVER variables with a custom extension.
I don't know how it's implemtned, but there should not be any fd outside the chroot if the same path exists inside the jail. It fails to set the session if the path is invalid, so I think it doesn't care...