php_stream_fopen_tmpfile may file, causing any following stream usage to crash
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  php_stream_fopen_tmpfile may file, causing any following stream usage to crash