Page MenuHomeDevCentral

D2486.id6267.diff
No OneTemporary

D2486.id6267.diff

diff --git a/src/OS/CurrentProcess.php b/src/OS/CurrentProcess.php
--- a/src/OS/CurrentProcess.php
+++ b/src/OS/CurrentProcess.php
@@ -24,7 +24,7 @@
if (!function_exists('posix_geteuid')) {
// POSIX PHP functions aren't always available, e.g. on FreeBSD
// In such cases, `id` will probably be available.
- return trim(shell_exec('id -u')) === '0';
+ return trim((string)shell_exec('id -u')) === '0';
}
/** @noinspection PhpComposerExtensionStubsInspection */

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 29, 02:34 (1 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2320063
Default Alt Text
D2486.id6267.diff (538 B)

Event Timeline