No, I test the patcht, but still didn't work. If it's an open_base_dir thing, I should see something in the apache logs.
I made a mistake adding the patch. Forgot to delete the line
return sys_get_temp_dir();
Now it works fine! Thanks for the Patch and thanks for your help!