Re: [RFC] OpenSSL BigNum support

From: Date: Wed, 19 Oct 2016 13:38:56 +0000
Subject: Re: [RFC] OpenSSL BigNum support
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-96487@lists.php.net to get a copy of this message
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/

« previous php.internals (#96487) next »