-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[WebServer] server:start failed (OSX, php 7.3.2) #30471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is due to a bug introduced in newer PHP builds on Homebrew. See: |
Let's close then. |
thx @kix, I still don't get why it worked when I removed those comments but who cares, that will be fixed at some point ;) |
FYI: |
+1 sever:start is not working on php 7.3.3 macos |
+1 server:start still not working on brew php 7.3.4 macOs (built: Apr 19 2019 00:20:56) |
Still an issue on the following version: |
I would recommend people to use the Symfony CLI instead: https://symfony.com/doc/current/setup/symfony_server.html |
Symfony CLI works well on 7.3.5! 👍 |
… (fabpot) This PR was merged into the 3.4 branch. Discussion ---------- Replace the PHP built-in server with the Symfony CLI one <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> I think it makes sense as the built-in web server has many limitations, but also because it seems to not work on PHP 7.3 (see symfony/symfony#30471). Commits ------- 473e072 replaced PHP built-in server with the Symfony CLI one
Symfony version(s) affected: v4.2.3
PHP version: PHP 7.3.2 on OS X installed with Brew. (pcntl present)
Description
=> does not start anything on PHP 7.3 (on 7.2 it is working as expected)
server:start
is working.fork
that is working too.How to reproduce
composer create-project symfony/website-skeleton my_project cd my_project composer require server --dev bin/console server:start 127.0.0.1:1664
Then
netstat -an | grep LISTEN | grep 1664
and you will see nothing.As soon as I switch to PHP 7.2.15, it is working again.
Additional context
I have tried to debug, using "file_put_contents" in the child (after fork).
The further I can go is in
createServerProcess
This is going to be weird:
Result is:
Even weirder, if I add debug in
PhpExecutableFinder
constructorThe result is THE SAME, which does not make any sense to me:
So I pushed the debug, trying weird things, I have removed all the comments in
PhpExecutableFinder.php
and magically it progressedI did the same for
ExecutableFinder.php
But the command is still now working, the
new Process
is failingSo I continued, it does not enter into the constructor at all. So I removed all the comment of
Process.php
, and I went further... and further removing those comments from files:And it finally worked ... but I am lost... I think that is a PHP bug.
I tried removing OPcache, but no change.
I then tried on Docker
=> IT WORKS.. so definitely something on Mac OS X, or PHP Brew...
Does someone reproduce this?
The text was updated successfully, but these errors were encountered: