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>
php版本不對吧,好像是感覺有些寫法不支持?
删除对应php版本中的putenv函数的禁用
putenv() 禁用函数
留个记号,我再安装过程中也因为函数被禁用出现过几次错误!
- 1
前往