Hi Sara,

Sara Golemon wrote:
As it says on the tin: Wrap the BN (BigNumber) library in OpenSSL.

https://wiki.php.net/rfc/openssl.bignum


If I'm reading the patch correctly, do all the methods accepting BigNums also accept PHP integers and strings, including hexadecimal strings?

Also, what happens for floats, or numeric strings with a decimal point or exponent? Will it be accepted, rejected, silently truncated? I'm guessing it won't produce PHP 7.1's notices and warnings for invalid numeric strings (though I don't suggest cloning that specific behaviour, an outright error would be better).

Thanks!

--
Andrea Faulds
https://ajf.me/

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to