Laravel从5.1.46更新到5.2。* php artisan Segmentation fault

问题描述 投票:0回答:1

我正在将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
php laravel laravel-5 artisan laravel-artisan
1个回答
0
投票
看起来问题出在加载的库中,但与Laravel 5.2不兼容。我已经解决了暂时删除该库的问题,并且正在为该库(SleepingOwl)进行更新。
© www.soinside.com 2019 - 2024. All rights reserved.