Skip to content

Conversation

@ndossche
Copy link
Member

@ndossche ndossche commented Dec 17, 2022

The check checks whether p is non-NULL. But if it were NULL the function would crash in later code, so the check is useless. It seems like *p was intended, but that is redundant as well because isspace would return false on '\0'.

EDIT: Failing test is proc_open02.phpt which seems to be unrelated, just flaky.

The check checks whether p is non-NULL. But if it were NULL the function
would crash in later code, so the check is useless.
It seems like *p was intended, but that is redundant as well because
isspace would return false on '\0'.
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@iluuu1994 iluuu1994 merged commit e288438 into php:master Dec 18, 2022
@ndossche ndossche deleted the update-phpdbg_trim branch December 18, 2022 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants