Windows环境 出现这个问题
生产环境布署

Fatal error: Uncaught Error: Call to undefined function Composer\XdebugHandler\putenv() in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/composer/xdebug-handler/src/Process.php:97
Stack trace:
#0 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/composer/xdebug-handler/src/Status.php(59): Composer\XdebugHandler\Process::setEnv('XDEBUG_HANDLER_...')
#1 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/composer/xdebug-handler/src/XdebugHandler.php(101): Composer\XdebugHandler\Status->_construct('COMPOSER_ALLOW...', false)
#2 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/bin/composer(28): Composer\XdebugHandler\XdebugHandler->__construct('Composer')
#3 C:\ProgramData\ComposerSetup\bin\composer.phar(29): require('phar://C:/Progr...')
#4 {main}
thrown in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/composer/xdebug-handler/src/Process.php on line 97
PS C:\Users\Administrator\buildadmin> composer install

Fatal error: Uncaught Error: Call to undefined function Composer\XdebugHandler\putenv() in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/composer/xdebug-handler/src/Process.php:97
Stack trace:
#0 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/composer/xdebug-handler/src/Status.php(59): Composer\XdebugHandler\Process::setEnv('XDEBUG_HANDLER_...')
#1 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/composer/xdebug-handler/src/XdebugHandler.php(101): Composer\XdebugHandler\Status->_construct('COMPOSER_ALLOW...', false)
#2 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/bin/composer(28): Composer\XdebugHandler\XdebugHandler->__construct('Composer')
#3 C:\ProgramData\ComposerSetup\bin\composer.phar(29): require('phar://C:/Progr...')
#4 {main}
thrown in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/composer/xdebug-handler/src/Process.php on line 97
PS C:\Users\Administrator\buildadmin>

4个回答默认排序 投票数排序
牛蛙点点
牛蛙点点
这家伙很懒,什么也没写~
10月前

php版本不對吧,好像是感覺有些寫法不支持?

小满
小满
和靠谱的人一起做靠谱的事!
10月前

删除对应php版本中的putenv函数的禁用

yd123
yd123
这家伙很懒,什么也没写~
9月前

putenv() 禁用函数

发林
发林
这家伙很懒,什么也没写~
8月前

留个记号,我再安装过程中也因为函数被禁用出现过几次错误!

请先登录
0
1
0
4