Valet: Issues with PHP 7.3 and Xdebug 2.7.0beta1

Created on 14 Dec 2018  Â·  8Comments  Â·  Source: laravel/valet

  • macOS Mojave
  • Valet 2.1.5
  • PHP 7.3.0 via Homebrew
  • Xdebug 2.7.0beta1 via PECL

The Xdebug extension was built and installed without any issues, it is loaded and works. However, there's quite some issues:

  1. Any valet command fails:
/usr/local/bin/valet: line 63: 17031 Segmentation fault: 11  php "$DIR/cli/valet.php" "$@"
  1. Running sudo brew services restart php instead of valet restart works fine.
  2. WordPress sites don't work, 502 error is returned with log entry:
2018/12/14 14:47:45 [error] 15719#0: *8 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: vidico.test, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/Users/Ihor/.config/valet/valet.sock:", host: "vidico.test"

No additional PHP-related error info.

  1. However, a vanilla Laravel project that simply dumps phpinfo() works fine, shows Xdebug loaded, var_dump() is overloaded by Xdebug (so it kinda works).

I understand that 7.3 support in Xdebug is still in beta, and issues are expected. Will be happy to dive deeper and investigate that cli segfault and 502 error if someone points where to look for additional debug info.

Most helpful comment

It will be fixed in the next version:
https://github.com/xdebug/xdebug/pull/438

On Thu, Jan 3, 2019, 17:54 Ihor Vorotnov notifications@github.com wrote:

@MartijnDevNull https://github.com/MartijnDevNull thanks for your
input. I personally rolled back to 7.2 for now, hope it'll be fixed soon.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/laravel/valet/issues/685#issuecomment-451205206, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AC0aetvLLlAh4Dgy5krPnJ3RuEQhg5Grks5u_jXIgaJpZM4ZTfiE
.

All 8 comments

Since the introduction of PHP 7.3.0-rc4-1, at least under Debian, it segfaults like crazy. I have tested it with 7.3.0-1 as well, but still behaves the same.

As soon as I switch back to 7.2.9-1, everything works as expected.

@stefanos82 PHP 7.2.13 with Xdebug 2.6.1 (stable) works perfectly fine for me. PHP 7.3.0 - nope.

@ihorvorotnov Yep, it must be a bug with 7.3.0.

Another person reported the same behavior https://laracasts.com/discuss/channels/code-review/homestead-502-bad-gateway-for-php-73-web-app-works-with-72

Disabling opcache seems to work: https://externals.io/message/103609

At least it won't segfault, can't get it to connect

edit: Not using this project but saw this issue and thought I'd share my 2 cents.

@MartijnDevNull thanks for your input. I personally rolled back to 7.2 for now, hope it'll be fixed soon.

It will be fixed in the next version:
https://github.com/xdebug/xdebug/pull/438

On Thu, Jan 3, 2019, 17:54 Ihor Vorotnov notifications@github.com wrote:

@MartijnDevNull https://github.com/MartijnDevNull thanks for your
input. I personally rolled back to 7.2 for now, hope it'll be fixed soon.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/laravel/valet/issues/685#issuecomment-451205206, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AC0aetvLLlAh4Dgy5krPnJ3RuEQhg5Grks5u_jXIgaJpZM4ZTfiE
.

IMO This can be closed, as it's not in Valet's control.

Looks like it's fixed as of RC1, here's what just worked for me:

pecl install xdebug-2.7.0RC2
valet restart
Was this page helpful?
0 / 5 - 0 ratings

Related issues

TimOgilvy picture TimOgilvy  Â·  3Comments

EHLOVader picture EHLOVader  Â·  4Comments

tomirons picture tomirons  Â·  4Comments

papakay picture papakay  Â·  3Comments

eberkund picture eberkund  Â·  4Comments