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.

*/
if (op_str == NULL) {
/* zend_dval_to_lval_cap() can emit a warning so always do the copy here */
/* zend_incompatible_string_to_long_error() needs op_str, so always do the copy here */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see how this applies any longer. The zend_string_copy could be moved just above zend_incompatible_string_to_long_error, and zend_string_release changed to zend_tmp_string_release.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

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.
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