better use of tmpnam/mkstemp
Merge branch 'PHP-5.6'

* PHP-5.6:
  better use of tmpnam/mkstemp