Page MenuHomeDevCentral

D2486.diff
No OneTemporary

D2486.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, 14:33 (22 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2249492
Default Alt Text
D2486.diff (538 B)

Event Timeline