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

Commit

Permalink
PHPDBG is also a valid non-sapi environment
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota authored Feb 14, 2019
1 parent d966a8a commit 7fa95ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UploadedFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function moveTo($targetPath) : void

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

0 comments on commit 7fa95ce

Please sign in to comment.