Skip to content

[9.x] Improves output capture from serve command#43461

Merged
taylorotwell merged 2 commits into9.xfrom
fix/serve-command-with-host
Jul 28, 2022
Merged

[9.x] Improves output capture from serve command#43461
taylorotwell merged 2 commits into9.xfrom
fix/serve-command-with-host

Conversation

@nunomaduro
Copy link
Copy Markdown
Member

This pull request handles the following edge case, where php artisan serve --host=nuno.francisco.localhost produces the following output by the PHP Built-in Server:

[Thu Jul 28 15:50:52 2022] [::1]:60815 Accepted
[Thu Jul 28 15:50:47 2022] [::1]:60815 Closing

Previously, the code was not ready for this case, causing an runtime exception. Now, we handle this properly.

@nunomaduro nunomaduro requested a review from taylorotwell July 28, 2022 14:52
@nunomaduro nunomaduro marked this pull request as ready for review July 28, 2022 17:03
@taylorotwell taylorotwell merged commit e7ac9b1 into 9.x Jul 28, 2022
@taylorotwell taylorotwell deleted the fix/serve-command-with-host branch July 28, 2022 19:14
Ken-vdE pushed a commit to Ken-vdE/framework that referenced this pull request Aug 9, 2022
* Improves output capture from `serve` command

* Update ServeCommand.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants