J.Doe
J.Doe

Reputation: 73

Symfony built-in server doesn't allow connection

I'm using Symfony for a while and today I upgraded my php version from 7.2.1 to 7.2.2 and added pthread support.

Since then when I start the Symfony builtin server (./app/console server:start) I get the usual:

[OK] Web server listening on http://127.0.0.1:8000

But then when I go to http://127.0.0.1:8000 it doesn't allow connection.

New PHP version is working fine.

Upvotes: 1

Views: 124

Answers (1)

J.Doe
J.Doe

Reputation: 73

I tried server:run instead and this errors instead :

[Tue Nov 20 13:47:47 2018] PHP Fatal error: The cli-server SAPI is not supported by pthreads in Unknown on line 0 [Tue Nov 20 13:47:47 2018] PHP Fatal error: Unable to start pthreads module in Unknown on line 0

After i googled it it seems that pthreads is restricted for CLI use only. It was indeed on the readme of pthreads github :

Pthread SAPI Support

Upvotes: 0

Related Questions