summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_modules.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-11-29 18:49:02 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-11-29 18:49:02 -0500
commit2d9499273f3f799b65ebe06c97786aa68ba797c7 (patch)
treec4455cb36cbeacffcc07828ebc7e1f92b6628f9d /pts-core/functions/pts-functions_modules.php
parentc7356bebfd9ade46678a591b6f53f06b8c0b7261 (diff)
downloadphoronix-test-suite-upstream-2d9499273f3f799b65ebe06c97786aa68ba797c7.tar.gz
phoronix-test-suite-upstream-2d9499273f3f799b65ebe06c97786aa68ba797c7.tar.xz
phoronix-test-suite-upstream-2d9499273f3f799b65ebe06c97786aa68ba797c7.zip
pts-core: Ensure all PTS options extend the pts_option_interface
Diffstat (limited to 'pts-core/functions/pts-functions_modules.php')
-rw-r--r--pts-core/functions/pts-functions_modules.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/pts-core/functions/pts-functions_modules.php b/pts-core/functions/pts-functions_modules.php
index 18384b8..b64a87f 100644
--- a/pts-core/functions/pts-functions_modules.php
+++ b/pts-core/functions/pts-functions_modules.php
@@ -378,5 +378,13 @@ function pts_module_activity($process, $value = null)
return $return;
}
+function pts_set_environment_variable($name, $value)
+{
+ // Sets an environmental variable
+ if(getenv($name) == false)
+ {
+ putenv($name . "=" . $value);
+ }
+}
?>