Skip to content

Conversation

dstogov
Copy link
Member

@dstogov dstogov commented Sep 26, 2024

No description provided.

public static function cdef(string $code = "", ?string $lib = null): FFI {}

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