1

I am installing dnode-php from github repository.

I am running PHP 5.3.10 and Composer. I used the composer.json file included in the above repository to generate my autoload.php files.

When I go to run server.php I get the following message:

PHP Fatal error:  Class 'React\EventLoop\StreamSelectLoop' not found in /home/chelsea/dnode-php-master/examples/simple/server.php on line 16

How do I fix this error?

Giacomo1968
  • 25,759
  • 11
  • 71
  • 103
  • Odd. This bug thread seems similar, but you are using PHP 5.3.10 so unclear how you are being affected. https://github.com/cboden/Ratchet/issues/40 – Giacomo1968 May 10 '14 at 18:40
  • Looking at the `composer.json` history my first instinct would be to change `"react/socket": "0.3.*"` to `"react/socket": "~0.2"` based on the that being the most recent diff. https://github.com/bergie/dnode-php/commits/master/composer.json – Giacomo1968 May 10 '14 at 18:44
  • Changing it to "~0.2" did not solve the issue, it still spits out the same error. – Chelsea Wuest May 25 '14 at 17:45

1 Answers1

0

You want to download the React library for this. And then your issue will be solved out.

Rahul_Dabhi
  • 709
  • 8
  • 30