This is because the shutdown function may not be in the normal cwd, correct? IIRC there's a reference to this in the PHP docs; it might be helpful to drop a URL to that here.