Skip to content

Conversation

devnexen
Copy link
Member

guaranteed.

@devnexen devnexen marked this pull request as ready for review May 25, 2025 12:03
@devnexen devnexen requested a review from kocsismate as a code owner May 25, 2025 12:03
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

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

This is a BC break. As if (call_to_function_always_returning_true()) {} will never be called now.

@bukka
Copy link
Member

bukka commented May 27, 2025

I don't think this is worth it.

@devnexen
Copy link
Member Author

I don't think this is worth it.

It made sense "back in the day", here php 4 used to return false on failure like this

ZEND_FETCH_RESOURCE(im, gdImagePtr, IM, -1, "Image", le_gd);

@Girgias
Copy link
Member

Girgias commented May 28, 2025

If we are going to do something like this, then it probably should be done in PHP 9 and across all functions/methods.

@devnexen
Copy link
Member Author

yes I agree, we started to discuss it in the internals.

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