Skip to content
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

[10.x] Prevent throw exception when cannot extract port from line #50041

Conversation

saeedhosseiinii
Copy link
Contributor

@saeedhosseiinii saeedhosseiinii commented Feb 10, 2024

according to #49927, when logging to stderr, certain strings will cause issues.

In handleProcessOutput of ServeCommand.php, the output is matched against certain strings. If these strings are found, additional logic is performed.

If strings that match the criteria are logged, it is possible that the strings are not what is expected, and will cause an exception

This pr solves this problem by checking that if it cannot extract the port from the line it does not enter the condition.

@saeedhosseiinii saeedhosseiinii force-pushed the prevent_throw_exception_when_cannot_extract_port_from_line branch from cc1cf29 to bc6802e Compare February 10, 2024 13:12
@saeedhosseiinii saeedhosseiinii changed the title [10.x] Prevent throw exception when cannot extract port from line in … [10.x] Prevent throw exception when cannot extract port from line Feb 10, 2024
@driesvints
Copy link
Member

Please add a thorough description to your PR and not just link to a previous issue or PR, thanks!

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.

3 participants