fpm has preserve_environment config, prevents clearenv() in workers.

Without this option, php5-fpm makes it impossible to configure a web
application using environment variables.

Doing so is legitimate and encouraged by http://12factor.net/config ,
Heroku, and other cloud platforms.