用compose安装tp框架提示警告putenv
作者:互联网
PHP Warning: putenv() has been disabled for security reasons in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/composer/xdebug-handler/src/Process.php on line 160
Warning: putenv() has been disabled for security reasons in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/composer/xdebug-handler/src/Process.php on line 160
PHP Warning: putenv() has been disabled for security reasons in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/bin/composer on line 57
Warning: putenv() has been disabled for security reasons in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/bin/composer on line 57
出现这样的错误是因为禁用了putenv()这个函数,新手(比如我)在安装时就遇到这个问题,一般只是Linux宝塔的环境会提示,只需要到PHP里把禁用的这个函数给删除就行了,生产环境的话安装完后再加上,该函数是用来设置环境变量的
标签:bin,ComposerSetup,compose,putenv,reasons,phar,tp,composer 来源: https://www.cnblogs.com/xfstu/p/12354933.html