Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96407 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66565 invoked from network); 18 Oct 2016 06:41:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2016 06:41:33 -0000 Authentication-Results: pb1.pair.com header.from=sebastian@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=sebastian@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 188.94.27.5 as permitted sender) X-PHP-List-Original-Sender: sebastian@php.net X-Host-Fingerprint: 188.94.27.5 scarlet.netpirates.net Received: from [188.94.27.5] ([188.94.27.5:44778] helo=scarlet.netpirates.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 40/33-40890-814C5085 for ; Tue, 18 Oct 2016 02:41:29 -0400 Received: (qmail 7846 invoked by uid 89); 18 Oct 2016 06:41:26 -0000 Received: by simscan 1.4.0 ppid: 7838, pid: 7841, t: 0.0527s scanners: attach: 1.4.0 clamav: 0.99.1/m:/d:20700 Received: from unknown (HELO ?192.168.178.24?) (php@sebastian-bergmann.de@84.165.78.74) by scarlet.netpirates.net with ESMTPA; 18 Oct 2016 06:41:26 -0000 To: internals@lists.php.net References: Message-ID: <21044c00-c647-4410-a778-f1cb39a6f00d@php.net> Date: Tue, 18 Oct 2016 08:41:25 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] OpenSSL BigNum support From: sebastian@php.net (Sebastian Bergmann) Am 18.10.2016 um 08:23 schrieb Sara Golemon: > I'm mostly curious about thoughts on API decisions. Can we make the constructor non-public and instead only have named constructors? * public static function createFromBinary(string $number): BigNum; * public static function createFromInteger(int $number): BigNum; * public static function createFromString(string $number): BigNum;