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, Nov 17, 16:18 (21 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2249492
Default Alt Text
D2486.id6267.diff (538 B)

Event Timeline