Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120146 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 83016 invoked from network); 27 Apr 2023 21:28:51 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Apr 2023 21:28:51 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 70B45180503 for ; Thu, 27 Apr 2023 14:28:49 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,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-oa1-f47.google.com (mail-oa1-f47.google.com [209.85.160.47]) (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 ; Thu, 27 Apr 2023 14:28:48 -0700 (PDT) Received: by mail-oa1-f47.google.com with SMTP id 586e51a60fabf-18f16bb1a9bso7120943fac.1 for ; Thu, 27 Apr 2023 14:28:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682630928; x=1685222928; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=9oHHUMcQKVjwLBja52LM+IpUONlSxpsoEpsgPecOGTw=; b=GCLG6IiIWVb/FN4OU/NeA6/ZkuBuhkuE5UVPou61zzNFK7PMJCpQUZfMnIIPG+TbAm 6Dt309TUtR6Uc94zziR5O0nrODpQNB5dNaN2YGJY9nEFfuKPwborUc4NTjJY0y4yFTx+ 2oyHakOgqRD04UHkKfqV/x58C5x7stBzn1/7wjPW7HgmrQa8ACxNpb37BxKAWx4EyAQc aY9uRT66wCUgwxnsH4dA0FcbYKdXEJOxGPga+4/sWhKx7X0R1qZuvWNU317KWbsjwMoa Hj8oglBIcGyZbz1GgRV0Oo0Fw0bR7T9MV+bImAqpVa16jYQn6g7mFxEIqwKWgVq9Gh4H GpVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682630928; x=1685222928; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9oHHUMcQKVjwLBja52LM+IpUONlSxpsoEpsgPecOGTw=; b=L81r3WdeWG1TJCO39dy1LZSDR2FlSx6UmeC+ZdpIUXJVrxcalmvzIZOaHw5x0uELZM hyxzdMmQBhL4BmdsJCDBUOpzmv92GZepO6VMVZAlfuDAMKTgXKGaeagXzp0ePiJYaUit sgknDuKAo1yLMkZ6HXq+m4h8eIkFVHKlPQzQWBD9CnpUdQMRRa0dC4AYcEsT+9WlbOiU XcC0DMsMYqoCbqBMhrYXzlQkUf22O9fauPtWMj77I4xTIUSD0n8zIexf95/ok4Aipiz9 wOJUy31ao3JtDto9eIwwN+imHyNppUq2l0+nuScNX7DnZglqR8GZiWRzHMWpJgGvHH4n yE7A== X-Gm-Message-State: AC+VfDxJMMBnxkhd151uQ+In9DgShf4WUWUeAPYYrP/kLV2wVwQvJ42h TRtv0yiSIfMcA1r0aqAvzmuWGy14Mu8IG3hmrLv1wwmEFcXUTQ== X-Google-Smtp-Source: ACHHUZ6OOLr8DqT6x//4kX2deXNkBmD54hFUDAYJFNopuB4PIA7J05EaQ9ptQ5yJZcaSGtDKVQGhLrRi1QpzQjJOLdA= X-Received: by 2002:a05:6808:351:b0:38e:4921:c64a with SMTP id j17-20020a056808035100b0038e4921c64amr1672330oie.3.1682630927881; Thu, 27 Apr 2023 14:28:47 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 27 Apr 2023 23:28:36 +0200 Message-ID: To: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000be9b4805fa580a64" Subject: [RFC] [Discussion] Deprecate functions with overloaded signatures From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --000000000000be9b4805fa580a64 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Internals, As you have possibly already experienced, overloaded signatures cause various smaller and bigger issues, while the concept is not natively supported by PHP. That's why I drafted an RFC which intends to phase out the majority of overloaded function/method signatures and also forbid the introduction of such functions in the future: https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures I'm not sure at all what the best solution would be to get rid of the overloaded FFI methods, so I hope that someone comes up with a better idea. Currently, the RFC suggests deprecating and then removing the static methods in question, but I hope that we can find a more elegant approach. So this section is incomplete and it's just for starting the discussion. Regards, M=C3=A1t=C3=A9 --000000000000be9b4805fa580a64--