我正在将Laravel项目从5.1.46更新到5.2。*。从这里按https://laravel.com/docs/5.2/upgrade#upgrade-5.2.0的步骤执行后,我运行了命令
./composer.phar update
当作曲家尝试运行时,我收到跟随错误
php artisan clear-compiled
分段故障(核心已转储)
我尝试手动运行命令
php artisan clear-compiled -vvv
但是我有完全一样的输出。您有什么主意,我该如何调试造成这种情况的原因?这在PHP 5.6中出现。我也尝试过使用PHP 7.4,但看起来计算机内存不足。由于某种原因,技术人员会占用计算机的整个内存,直到计算机死机为止。
谢谢!
后期编辑:
我使用了内存限制最大为8G的PHP 7.2,并且具有以下输出:
> php artisan clear-compiled
PHP Fatal error: Allowed memory size of 8589934592 bytes exhausted (tried to allocate 262144 bytes) in /d/projects/a-car/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 616
PHP Fatal error: Allowed memory size of 8589934592 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
Script php artisan clear-compiled handling the post-install-cmd event returned with error code 255