PHP Warning: putenv() has been disabled for security reasons in phar

PHP教程评论1,533阅读模式
PHP Warning: putenv() has been disabled for security reasons in phar:///usr/local/bin/composer/vendor/composer/xdebug-handler/src/Process.php on line 149

Warning: putenv() has been disabled for security reasons in phar:///usr/local/bin/composer/vendor/composer/xdebug-handler/src/Process.php on line 149

PHP Warning: putenv() has been disabled for security reasons in phar:///usr/local/bin/composer/bin/composer on line 57

Warning: putenv() has been disabled for security reasons in phar:///usr/local/bin/composer/bin/composer on line 57

PHP Warning: putenv() has been disabled for security reasons in phar:///usr/local/bin/composer/vendor/composer/xdebug-handler/src/Process.php on line 149

Warning: putenv() has been disabled for security reasons in phar:///usr/local/bin/composer/vendor/composer/xdebug-handler/src/Process.php on line 149
PHP Warning: putenv() has been disabled for security reasons in phar:///usr/local/bin/composer/bin/composer on line 57

Warning: putenv() has been disabled for security reasons in phar:///usr/local/bin/composer/bin/composer on line 57文章源自爱尚资源教程网-https://www.23jcw.net/4172.html

原因

这个问题的原因主要是php为了安全问题,禁止putenv()这个函数。文章源自爱尚资源教程网-https://www.23jcw.net/4172.html

解决方法

修改php的配置文件,php.ini
找到disable_function这个地方,把putenv去掉即可。文章源自爱尚资源教程网-https://www.23jcw.net/4172.html 文章源自爱尚资源教程网-https://www.23jcw.net/4172.html

相关文章
版权声明:文章图片资源来源于网络,如有侵权,请留言删除!!!
  • 温馨提示:如遇到资源下载不了,或者文章没有解决你的问题的,可以联系我们帮你处理!!!
  • 转载请务必保留本文链接:https://www.23jcw.net/4172.html

发表评论