Skip to content

Commit 01a8f0b

Browse files
AndrewCarterUKNyholm
authored andcommitted
Added @ operator to silence notice from tempnam() (#51)
1 parent f6452d3 commit 01a8f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private function parseMultipartFormData($stream, $boundary) {
164164
if ($fieldType === 'data') {
165165
$post .= (isset($post[0]) ? '&' : '') . $fieldName . "=" . urlencode($buffer);
166166
} elseif ($fieldType === 'file' && $filename) {
167-
$tmpPath = tempnam($this->getUploadDir(), 'fastcgi_upload');
167+
$tmpPath = @tempnam($this->getUploadDir(), 'fastcgi_upload');
168168
$err = file_put_contents($tmpPath, $buffer);
169169
$this->addFile($files, $fieldName, $filename, $tmpPath, $mimeType, false === $err);
170170
$filename = $mimeType = null;

0 commit comments

Comments
 (0)