PHP Artisan Tinker从任何命令崩溃 [英] PHP Artisan Tinker crashing from any command

查看:104
本文介绍了PHP Artisan Tinker从任何命令崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前没有遇到过这个问题,但是我的php artisan tinker因发出任何命令而崩溃-并没有任何日志记录导致崩溃的原因.

I haven't had this problem before, but my php artisan tinker crashes from issuing any command - and leaves no logs whatsoever on what is causing the crash.

project4 $ php artisan tinker
Psy Shell v0.9.9 (PHP 7.3.0 — cli) by Justin Hileman
>>> use \App\Jobs\testJob;
project4 $

甚至是最简单的命令:

project4 $ php artisan tinker
Psy Shell v0.9.9 (PHP 7.3.0 — cli) by Justin Hileman
>>> print("Hello World!");
project4 $

我几乎想知道它是否无法正确连接到PHP,但是我在任何地方都找不到任何日志. Laravel没有这些命令的痕迹.我运行了brew update,但没有区别.据记录,我的所有项目全部都受到了影响.我无法在任何项目上进行修补.救命!

I almost wonder if it isn't connecting to PHP correctly, but I can't find any logs anywhere. Laravel has no trace of the commands. I ran brew update, but no difference. For the record, all of my projects are affected. I can't tinker on any of my projects. Help!

我最近确实升级到了PHP 7.3.0,该版本在所有其他方面都运行良好.嗯...

I did recently upgrade to PHP 7.3.0, which is working fine in every other area. Hmm...

推荐答案

如果您正在使用homebrew在Mojave上安装的PHP 7.3,请尝试在~/.config/psysh/config.php处创建配置文件:

If you are using PHP 7.3 installed by homebrew on Mojave, try creating a config file at ~/.config/psysh/config.php if not already there:

<?php
return [
  'usePcntl' => false,
]; 

来源: https://github.com/bobthecow/psysh/issues/540#issuecomment-446480753

这篇关于PHP Artisan Tinker从任何命令崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆