Skip to content

[PHP] fix: reject unsupported mremap flags#750

Open
brandonpayton wants to merge 1 commit into
integration/kd-6nz-php-phpt-harness-only-basefrom
gascity/kd-6nz/split-pr717-mremap-flags
Open

[PHP] fix: reject unsupported mremap flags#750
brandonpayton wants to merge 1 commit into
integration/kd-6nz-php-phpt-harness-only-basefrom
gascity/kd-6nz/split-pr717-mremap-flags

Conversation

@brandonpayton

Copy link
Copy Markdown
Member

Supersedes fork-headed PR #730. This replacement keeps the same head commit (978e081) but moves the PR head onto an Automattic/kandelo branch.

Why this is needed

PHP memory-management tests can probe mremap edge cases. Accepting unsupported flags makes Kandelo silently promise behavior it does not implement.

Why this shape makes sense

A kernel compatibility layer should reject unsupported modes clearly. That gives callers deterministic errors and avoids corrupting runtime state with partially implemented mremap semantics.

Why this is the correct fix

Returning an error for unsupported flags matches the contract better than pretending success. It makes the implemented surface precise and testable.

Verification

Branch-location correction only. Replacement head SHA matches fork-headed PR #730 exactly.

(cherry picked from commit 8c015fa)
(cherry picked from commit ccf8d32)
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.

1 participant