Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119220 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 36216 invoked from network); 30 Dec 2022 23:50:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Dec 2022 23:50:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2D6B01804BE for ; Fri, 30 Dec 2022 15:50:57 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 30 Dec 2022 15:50:56 -0800 (PST) Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-47fc4e98550so172297097b3.13 for ; Fri, 30 Dec 2022 15:50:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2Sgo5nHj1w6WkkjuTIEkz9OpwWdItSwpUdxnl/kAkgc=; b=T95hBRD96p1AXEpgFif2WBGaAVN8wE46ralLZciAlYsdLiIlpLeC28vsazP+N9oXlQ q3PI3A5VAZhkqEUSB3RDVTA3+1N533SSU85Ip29xmL71vnA6Z9Mdh1auhD5CpaAUarcm 7KVST2QB9uTrJSGzwGvpH/rzDGyS1fAzjVy2s+X5AZb9aWNUXnftz+vSNhJxvFtip5AA oaRg5gySwI53ltmTOq4Kr75wloSYIwbHp5j912aLFicPs50fLzZLmfDN7MggqNG8pkvZ /MQckrs/zdx/bdkXlats1pKpm23C0luni2XKHC0SgWrLl7XCrqO7EELf23T0jdt2oLhW yyMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2Sgo5nHj1w6WkkjuTIEkz9OpwWdItSwpUdxnl/kAkgc=; b=WyE3lT3iOaUeso8T9AnclzamPrkRbgyCQrnD5gy38IPJ7s9cBenybG9PC0PTcXXV7D YfVksCw2QFNas18Sodg4nYDg+Pk8oIlgcDBVZN6Tzwv7nhVYNX+lswiKqoNNDPWq2mSb ZPMHjkEq2DNF7d2UdbMuwtIrmP5Kjl5Ic63sXpFBFeHwdkyNfE5fo6rdsoNMBMNCPViU 9vlJZlwk5dEmnTD07+2fTvjxwsxtyaDN3bzNmIg0YZWvE3lm/jG4XMEe+3SbH3HISScI y/k8puZ84lTrSNf8P8z9URbD0V/R7idU3bmotxYFkFeedkLookTNJ1bim7jM9kVVNOKe MlYQ== X-Gm-Message-State: AFqh2kqvlA837Nwouh6iTMx8FTIl3M9mSR8aq5hNVeDkeyJ6ciEOaegn I7E5j9Kt4jJuQc1xlT/he77LdXOxNcIRys0ntAs= X-Google-Smtp-Source: AMrXdXv/1Gd16fhMYdv3yYl0i6kycqMNWG+ND2Yk2+pUKY7mOc/poIijArGWpeOL8ZncPN+CXbXF1trK3wkOGDA8bOM= X-Received: by 2002:a81:b47:0:b0:479:d348:34e3 with SMTP id 68-20020a810b47000000b00479d34834e3mr2360397ywl.40.1672444256199; Fri, 30 Dec 2022 15:50:56 -0800 (PST) MIME-Version: 1.0 References: <97df3b41-316e-0f83-09ce-d1d416eb7616@bastelstu.be> In-Reply-To: <97df3b41-316e-0f83-09ce-d1d416eb7616@bastelstu.be> Date: Sat, 31 Dec 2022 00:50:44 +0100 Message-ID: To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: "G. P. B." , PHP internals Content-Type: multipart/alternative; boundary="000000000000cc2a4b05f11445af" Subject: Re: [PHP-DEV] What to do with opaque GMP objects which allows instantiation From: divinity76@gmail.com (Hans Henrik Bergan) --000000000000cc2a4b05f11445af Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Why isn't that generating an ArgumentCountError? On Fri, Dec 30, 2022, 21:36 Tim D=C3=BCsterhus wrote: > 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=C3=BCsterhus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --000000000000cc2a4b05f11445af--