Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3950676
D2486.id6267.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.id6267.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, 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)
Attached To
Mode
D2486: Avoid to compare shell_exec() result as false or null
Attached
Detach File
Event Timeline
Log In to Comment