laravel / tinker

Powerful REPL for the Laravel framework.
https://laravel.com/docs/artisan#tinker
MIT License
7.33k stars 130 forks source link

Not working after upgrade to PHP 7.3.0 #63

Closed dciancu closed 5 years ago

dciancu commented 5 years ago

Please advise if this is a PsyShell bug, in which case I will file this issue at their repo.

After upgrading PHP to 7.3.0 - latest version (and Xdebug to 2.7.0beta1 latest version compatible with PHP 7.3, in case it matters), tinker is no longer working. It launches correctly but I after I input a command it just exits with no error, nothing written to log file and status code 0.

dportalesr commented 5 years ago

I can confirm this.

Edit: I installed PsyShell separately, and the same issue is present, so looks like it's a PsyShell bug.

ghost commented 5 years ago

Here's a workaround that appears to work until the issue is addressed:

https://github.com/bobthecow/psysh/issues/540#issuecomment-445546060

driesvints commented 5 years ago

This indeed seems to be a PsyShell problem but I'm going to leave this open to follow up. Please wait until they solve it so we can release a patch with their fix.

hulkur commented 5 years ago

In php.ini set pcre.jit=0

belguinan commented 5 years ago

Same issue.

hedii commented 5 years ago

Same for me (copy paste from https://github.com/laravel/framework/issues/26906)

Description:

Tinker exit unexpectedly whatever you enter in it.

Steps To Reproduce:

with php7.3, it exit when I type:

$ php artisan tinker
Psy Shell v0.9.9 (PHP 7.3.0 — cli) by Justin Hileman
>>> $test = 'eee';
$

with php7.2, it is ok:

$ php artisan tinker
Psy Shell v0.9.9 (PHP 7.2.12-1+0~20181112102304.11+stretch~1.gbp55f215 — cli) by Justin Hileman
>>> $test = 'eee';
=> "eeee"

tested with an other version of laravel as well (5.7.15)

more info on my php version:

php -v
PHP 7.3.0 (cli) (built: Dec  7 2018 11:00:11) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.0-dev, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.0, Copyright (c) 1999-2018, by Zend Technologies
dinhquochan commented 5 years ago

Same issue.

driesvints commented 5 years ago

I'm going to lock this issue here because I doubt that anyone can contribute something useful here besides reporting that they also have the issue. If you have feedback on how to solve this please post on the issue from PsyShell.

driesvints commented 5 years ago

I'm closing this issue as this isn't an issue with tinker itself. I've pinned the issue to the issue tracker for now so people who installed PHP with Homebrew can still find it easily.

driesvints commented 4 years ago

FYI: as of PHP 7.3.11 this seems to be finally fixed: https://github.com/bobthecow/psysh/issues/540#issuecomment-547847844