Skip to content

Conversation

@lucasnetau
Copy link
Contributor

Additional PR along with PR #11247 targeting PHP>=8.2 due to commit b468d6f

Fixes #11246, when executing on MacOS it was found that the environ area my not be contiguous.

Checking the original Postgres implementation https://github.com/postgres/postgres/blob/master/src/backend/utils/misc/ps_status.c the PHP code fails if either argv or environ is non-contiguous whereas the original code only fails if argv is ever non-contiguous.

Additionally the end_of_area variable is changed even if we hit a non-contiguous environ section, another divergence from the original code

@iluuu1994
Copy link
Member

Merged as c6ae7a5.

@iluuu1994 iluuu1994 closed this May 31, 2023
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