+ if (empty($_ENV['PATH'])) {
+ // FIXME: If we upgrade to newer Symfony\Process and use the newer
+ // inheritEnv feature, then this becomes unnecessary.
+ throw new \CRM_Core_Exception('ExternalBatch cannot detect environment: $_ENV is missing. (Tip: Set variables_order=EGPCS in php.ini.)');
+ }