Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96487 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66638 invoked from network); 19 Oct 2016 13:39:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Oct 2016 13:39:02 -0000 X-Host-Fingerprint: 176.248.3.153 unknown Received: from [176.248.3.153] ([176.248.3.153:6193] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/79-14749-37777085 for ; Wed, 19 Oct 2016 09:39:00 -0400 Message-ID: <94.79.14749.37777085@pb1.pair.com> To: internals@lists.php.net References: Date: Wed, 19 Oct 2016 14:38:56 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 176.248.3.153 Subject: Re: [RFC] OpenSSL BigNum support From: ajf@ajf.me (Andrea Faulds) 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/