Fix php://input stream to use upload_tmp_dir

Fix for bug #67551
https://bugs.php.net/bug.php?id=67551