Skip to content

Zend: add const qualifiers to the majority of compare functions#21304

Open
Girgias wants to merge 1 commit intophp:masterfrom
Girgias:const-cmp
Open

Zend: add const qualifiers to the majority of compare functions#21304
Girgias wants to merge 1 commit intophp:masterfrom
Girgias:const-cmp

Conversation

@Girgias
Copy link
Member

@Girgias Girgias commented Feb 26, 2026

This sadly does not include zend_compare() and functions relying on it due to 2 reasons:

  • The compare object handler doesn't take const pointers
  • The cast object handler (used for comparisons against other types) doesn't take const pointers

This sadly does not include zend_compare() and functions relying on it due to 2 reasons:

- The compare object handler doesn't take const pointers
- The cast object handler (used for comparisons against other types) doesn't take const pointers
@Girgias Girgias marked this pull request as ready for review February 26, 2026 16:38
@Girgias Girgias requested a review from dstogov as a code owner February 26, 2026 16:38
@Girgias Girgias requested a review from TimWolla February 26, 2026 16:38
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.

1 participant