more check for php_stream_fopen_tmpfile failure
Fix unitialized vars when sql.safe_mode=1

which can break the subsequent mysqlnd_connect() call
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Fix unitialized vars when sql.safe_mode=1
  more check for php_stream_fopen_tmpfile failure