Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2692083
D25534.1734755268.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
D25534.1734755268.diff
View Options
diff --git a/src/filesystem/Filesystem.php b/src/filesystem/Filesystem.php
--- a/src/filesystem/Filesystem.php
+++ b/src/filesystem/Filesystem.php
@@ -275,7 +275,7 @@
$trap->destroy();
if (!$ok) {
- if (strlen($err)) {
+ if ($err !== null && strlen($err)) {
throw new FilesystemException(
$to,
pht(
@@ -307,7 +307,7 @@
* @task file
*/
public static function remove($path) {
- if (!strlen($path)) {
+ if ($path == null || !strlen($path)) {
// Avoid removing PWD.
throw new Exception(
pht(
@@ -673,7 +673,7 @@
}
// If we come back with an encoding, strip it off.
- if (strpos($mime_type, ';') !== false) {
+ if ($mime_type !== null && strpos($mime_type, ';') !== false) {
list($type, $encoding) = explode(';', $mime_type, 2);
$mime_type = $type;
}
diff --git a/src/workingcopyidentity/ArcanistWorkingCopyIdentity.php b/src/workingcopyidentity/ArcanistWorkingCopyIdentity.php
--- a/src/workingcopyidentity/ArcanistWorkingCopyIdentity.php
+++ b/src/workingcopyidentity/ArcanistWorkingCopyIdentity.php
@@ -289,7 +289,7 @@
}
public function readLocalArcConfig() {
- if (strlen($this->localMetaDir)) {
+ if ($this->localMetaDir !== null && strlen($this->localMetaDir)) {
$local_path = Filesystem::resolvePath('arc/config', $this->localMetaDir);
$console = PhutilConsole::getConsole();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 04:27 (16 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1021118
Default Alt Text
D25534.1734755268.diff (1 KB)
Attached To
Mode
D25534: T15064: Several arcanist PHP 8.1 compat issues on Windows
Attached
Detach File
Event Timeline
Log In to Comment