Skip to content

Update ext/ffi parameter names #6282

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

Closed
wants to merge 2 commits into from
Closed

Update ext/ffi parameter names #6282

wants to merge 2 commits into from

Conversation

nikic
Copy link
Member

@nikic nikic commented Oct 6, 2020

No description provided.

*/
public static function memcpy(FFI\CData $dst, $src, int $size): void {}
public static function memcpy(FFI\CData $to, $from, int $size): void {}
Copy link
Member Author

Choose a reason for hiding this comment

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

Using $from/$to with memcpy feels a bit odd to me, but it's not too bad...

Copy link
Member

Choose a reason for hiding this comment

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

I'm ok with either :)

Copy link
Member

@kocsismate kocsismate 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! As I'm not familiar with this extension, I had to think out-loud a little bit.

*/
public static function memcpy(FFI\CData $dst, $src, int $size): void {}
public static function memcpy(FFI\CData $to, $from, int $size): void {}
Copy link
Member

Choose a reason for hiding this comment

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

I'm ok with either :)

@php-pulls php-pulls closed this in 22ab18c Oct 7, 2020
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