Skip to content

Conversation

@Girgias
Copy link
Member

@Girgias Girgias commented Sep 24, 2025

No description provided.

ir_ref if_val = ir_IF(is_nan);
ir_IF_TRUE_cold(if_val);
jit_SET_EX_OPLINE(jit, opline);
ir_CALL(IR_VOID, ir_CONST_FC_FUNC(zend_jit_nan_coerced_to_type_warning));
Copy link
Member

Choose a reason for hiding this comment

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

Nit: This file doesn't indent branches anywhere, not sure it makes sense to start a new convention for 2 lines. 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

That's fair, I did it so that I could understand what is going on, but can remove the indent :)

Copy link
Member

@arnaud-lb arnaud-lb left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@Girgias Girgias merged commit b4b0155 into php:PHP-8.5 Sep 24, 2025
1 check passed
@Girgias Girgias deleted the nan-function-jit-fix branch September 24, 2025 15:48
Girgias added a commit that referenced this pull request Sep 24, 2025
* PHP-8.5:
  Update NEWS
  opcache: Fix segfault in function JIT due to NAN to bool warning (#19947)
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.

3 participants