Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4159145
SystemEnv.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
666 B
Referenced Files
None
Subscribers
None
SystemEnv.php
View Options
<?php
/*
* This file is part of Psy Shell.
*
* (c) 2012-2023 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
Psy
;
/**
* Environment variables implementation via getenv().
*/
class
SystemEnv
implements
EnvInterface
{
/**
* Get an environment variable by name.
*
* @return string|null
*/
public
function
get
(
string
$key
)
{
if
(
isset
(
$_SERVER
[
$key
])
&&
$_SERVER
[
$key
])
{
return
$_SERVER
[
$key
];
}
$result
=
\getenv
(
$key
);
return
$result
===
false
?
null
:
$result
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 23:45 (9 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fd/48/11d60dff3347f3cbc31e2eb3d2d0
Default Alt Text
SystemEnv.php (666 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment