Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 7fa95ce

Browse files
authored
PHPDBG is also a valid non-sapi environment
1 parent d966a8a commit 7fa95ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UploadedFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function moveTo($targetPath) : void
189189

190190
$sapi = PHP_SAPI;
191191
switch (true) {
192-
case (empty($sapi) || 0 === strpos($sapi, 'cli') || ! $this->file):
192+
case (empty($sapi) || 0 === strpos($sapi, 'cli') || 0 === strpos($sapi, 'phpdbg') || ! $this->file):
193193
// Non-SAPI environment, or no filename present
194194
$this->writeFile($targetPath);
195195
break;

0 commit comments

Comments
 (0)