Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119217 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 22106 invoked from network); 30 Dec 2022 20:36:34 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Dec 2022 20:36:34 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EA8B1180339 for ; Fri, 30 Dec 2022 12:36:30 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 176.9.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 30 Dec 2022 12:36:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1672432588; bh=GSKbW4E4O9NC7DM/pm3Ztl+pmXAMp6mjuzJ6yxegxjI=; h=Date:Subject:To:References:From:In-Reply-To:From; b=EMZT4WnzlcavqSSnefN3KesTypVnSd4ZQ6xAD/s8hZlcP2RE+j+9R1ZtD0EkyJS6d mtdE9TqGBXLLOSgY2p7B5zJL9BNoyjPX1HtOiVB5n2/ebW/hqXTdr3i2Y+j+FdDiEg 1Z5J8YpggMXoNZDA0dkQECW4YkH9f8eFjqcCHptTQzcMqLd4qrxq+8vaPXZ3FWNx+A E2126RacMnDOWI09K3aZH/cmnS+s+pQVCo8vJv/SHgEWANaf9rRFL1GyfvFc4FIi+f uA3DpJdJ7vffOW2xP3IjDUdhO3l4DESN9cc4fV9H2wlzcxbfiMAxjnd7rseKtokeLp OJzxxrXkPkh+w== Message-ID: <97df3b41-316e-0f83-09ce-d1d416eb7616@bastelstu.be> Date: Fri, 30 Dec 2022 21:36:26 +0100 MIME-Version: 1.0 Content-Language: en-US To: "G. P. B." , PHP internals References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] What to do with opaque GMP objects which allows instantiation From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=c3=bcsterhus?=) Hi On 12/30/22 18:36, G. P. B. wrote: > - Add a proper constructor that does the same as gmp_init() in master/8.2.1 My preference would be this (without any target branch preference): If there is no technical reason to disallow creating new GMP objects via 'new', then I believe that making those objects behave more like "regular" / "userland" objects is a good thing. Best regards Tim Düsterhus