Skip to content

Fix FFI prototypes (these functions can't return NULL) #16075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

dstogov
Copy link
Member

@dstogov dstogov commented Sep 26, 2024

No description provided.

public static function load(string $filename): ?FFI {}
public static function load(string $filename): FFI {}
Copy link
Member

Choose a reason for hiding this comment

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

I think it can return NULL during preloading?

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right. Thanks for catching this.
Everything else is OK?

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.

LGTM!

@dstogov dstogov merged commit a37a3d3 into php:PHP-8.4 Sep 26, 2024
10 checks passed
dstogov added a commit that referenced this pull request Sep 26, 2024
* PHP-8.4:
  Fix FFI prototypes (these functions can't return NULL) (#16075)
jorgsowa pushed a commit to jorgsowa/php-src that referenced this pull request Oct 1, 2024
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