Page MenuHomePhabricator
Diviner libphutil Tech Docs PhutilExecutionEnvironment

final class PhutilExecutionEnvironment
libphutil Technical Documentation (Core Utilities)

Get information about the current execution environment.

Methods

public static function getOSXVersion()

This method is not documented.
Return
wild

public static function repairMissingVariablesOrder()

If the PHP configuration setting "variables_order" does not include "E", the $_ENV superglobal is not populated with the containing environment. For details, see T12071.

This can be fixed by adding "E" to the configuration, but we can also repair it ourselves by re-executing a subprocess with the configuration option defined to include "E". This is clumsy, but saves users from needing to go find and edit their PHP files.

Return
void