简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM