Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768904
D2486.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
538 B
Referenced Files
None
Subscribers
None
D2486.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 11:20 (11 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260072
Default Alt Text
D2486.diff (538 B)
Attached To
Mode
D2486: Avoid to compare shell_exec() result as false or null
Attached
Detach File
Event Timeline
Log In to Comment