Skip to content
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

Improve gmp_export() documentation #3865

Open
Girgias opened this issue Oct 13, 2024 · 0 comments
Open

Improve gmp_export() documentation #3865

Girgias opened this issue Oct 13, 2024 · 0 comments

Comments

@Girgias
Copy link
Member

Girgias commented Oct 13, 2024

The documentation is pretty clear about gmp_export(): "Export a GMP number to a binary string". ;)

It's actually an elaborate pack(); besides that it obviously works for large numbers, you cannot only choose endianess, but also the $word_size.

Originally posted by @cmb69 in php/php-src#16418 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant