php_stream_fopen_tmpfile may file, causing any following stream usage to crash