This patch changes PHP safe mode behaviour, so file upload will work. It makes PHP to upload files to $HOME/phptmp (home dir of skript owner) and allows access to files, which is located in directory owned by the same user as script even if this file is not owned by him.