MAMP: Environment variables being deleted/replaced between envvars and runtime
问题 Using MAMP + MAMP Pro 3.5 for local development. Using the envvars file, I'm supplying my own PATH, that is different from the PATH for any other user or purpose. Let's pretend it's /my/unique/custom/path . I put the following file on my local development site: <ol> <li><?php print $_SERVER['PATH']; ?></li> <li><?php print $_ENV['PATH']; ?></li> <li><?php print exec('echo $PATH'); ?></li> </ol> And this is the result: /my/unique/custom/path /my/unique/custom/path /usr/gnu/bin:/usr/local/bin: