more check for php_stream_fopen_tmpfile failure