Symfony2 post-update-cmd gives “An error occurred when generating the bootstrap file”

后端 未结 11 1094
一向
一向 2020-12-15 05:13

I am currently on Symfony2 2.3.7. When I run the composer update command. In the post-update-cmd a script is run to update symfony2. But it fails:

Script Sen         


        
11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-15 05:33

    In my case I had no permissions errors. It had to do with a require() for disabled PHP functions in the pnctl-event-loop-emitter library. The composer autoloader was failing hard and crashed the script. The solution was to enable pcntl_ functions in php.ini.

    The offending file was vendor/composer/../gos/pnctl-event-loop-emitter/src/functions.php

    ; This directive allows you to disable certain functions for security reasons.^M
    ; It receives a comma-delimited list of function names. This directive is^M
    ; *NOT* affected by whether Safe Mode is turned On or Off.^M
    ; http://php.net/disable-functions^M
    ; disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
    disable_functions =
    

提交回复
热议问题