Skip to content

Fix bug GH-11246 cli/get_set_process_title initialisation failure on MacOS (PHP >= 8.2) - #11273

Closed
lucasnetau wants to merge 2 commits into
php:PHP-8.2from
lucasnetau:Fix-11246-PHP-8.2
Closed

lucasnetau wants to merge 2 commits into
php:PHP-8.2from
lucasnetau:Fix-11246-PHP-8.2

Conversation

@lucasnetau

Copy link
Copy Markdown
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
Copy Markdown
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