Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Xdebug prevents the socket from starting in PHP 7.2 #25

Open
bryce13950 opened this issue Jul 7, 2018 · 3 comments
Open

Xdebug prevents the socket from starting in PHP 7.2 #25

bryce13950 opened this issue Jul 7, 2018 · 3 comments

Comments

@bryce13950
Copy link

When working locally on a VM, the socket cannot be started, because of an exception being thrown whenever xdebug is enabled in the installation.

  Exception trace:

  1   trigger_error("XDebug extension detected. Remember to disable this if performance testing or going live!")
      /vagrant/code/vendor/cboden/ratchet/src/Ratchet/App.php : 66

  2   Ratchet\App::__construct("localhost", "8080", "127.0.0.1")
      /vagrant/code/vendor/orchid/socket/src/Console/Server.php : 61

  Please use the argument -v to see more details.

@tabuna
Copy link
Owner

tabuna commented Jul 7, 2018

The package does not work with the module enabled. Please disable it
Debugger always analyzes the script and stores it in memory,
since the socket does not die, this results in an endless memory devouring.

@bryce13950
Copy link
Author

Is there a purpose for this not working with xdebug? This seems a bit arbitrary, especially since the exception message explicitly states that xdebug should be disabled in live, or performance testing environments. I am not in either of those environments, so I do not see why this does not work. Is there something in the source base that makes it incapable of running with xdebug outside of this exception?

@tabuna
Copy link
Owner

tabuna commented Jul 7, 2018

This package requirement

I know that there were a lot of problems with this when the xdebug was turned on.
https://github.com/ratchetphp/Ratchet/issues?utf8=%E2%9C%93&q=xdebug

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants