Skip to content

Conversation

@nyrzhun
Copy link

@nyrzhun nyrzhun commented Feb 2, 2026

The zend_string *s parameter became unused after commit f754ffa (GH-20746) removed the zend_oob_string_to_long_error() calls.

This fixes an unused-parameter compiler warning and updates a stale comment in zend_operators.c that incorrectly stated this function can emit warnings.

The `zend_string *s` parameter became unused after commit f754ffa
(phpGH-20746) removed the `zend_oob_string_to_long_error()` calls.

This fixes an unused-parameter compiler warning and updates a stale
comment in zend_operators.c that incorrectly stated this function
can emit warnings.
@iluuu1994
Copy link
Member

iluuu1994 commented Feb 2, 2026

Hi @nyrzhun. This is API-breaking and should thus target master. To resolve the warning on 8.5, we may use ZEND_IGNORE_VALUE(s); instead.

@nyrzhun
Copy link
Author

nyrzhun commented Feb 2, 2026

@iluuu1994, thank you, closing this PR and creating a merge request to master, as you suggested - #21112

@nyrzhun nyrzhun closed this Feb 2, 2026
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