Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125307 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 4055E1A00BD for ; Tue, 27 Aug 2024 07:49:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724745080; bh=wsT0eo26dtu7fI+6R088gXoXK79f3OQC5B4ZXKHVF9w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=K724gUit5kYJTXMmqnmjfzkqOt8yl/M6l/ZVYTHxNS+oO7B68j3ai7ahyIx2UtMeg EW9LIm07YLP8tGzv+IT2cFAnutB1ESW69PNgn6FcO4oNB+7ZV+H3Xm58rdWqZic/+X zBOUOcIGZkhztxI6k/tQfPmX5niAmXbYdb2aN4tNpwaJI+Opelr+s6QtQWVJD1CGDV bVgf3m+JhBUO/px7JM9vzPX8AT4FZzFhhWs2868d+KR9DDfD78y/bH9VBd1qPoK2Kl KtcC2XK+sXUlUpqZk7WrSb1L4ydeGjIVyCnUD9s1SpAZFEpRNkK0dd/7qC9eHL9WnA HXy0hKaCOuI/w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 92CD51801DD for ; Tue, 27 Aug 2024 07:51:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from smtp-out3.simply.com (smtp-out3.simply.com [94.231.106.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 27 Aug 2024 07:51:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.simply.com (Simply.com) with ESMTP id 4WtKSL5gvyz1FRm8 for ; Tue, 27 Aug 2024 09:49:22 +0200 (CEST) Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by smtp.simply.com (Simply.com) with ESMTPSA id 4WtKSL3Dblz1FXS7 for ; Tue, 27 Aug 2024 09:49:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=givoni.dk; s=unoeuro; t=1724744962; bh=QkSvCsvdJHopyV/6ojnCvKVVSbiUSVqQgL0bjtjIbvI=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=YtgtPnffKZ+xqLOGTtSDewnWNG4E15OxJV50dIlNKlvP2J1YdawNbCwWjr7z/VJQN 4MiFyuM93n2affCI24D74LZCFt0kXGd0gWuGouNS6zUVW4keaRInRiTtftX21tQKew GWYDS1YMucl7rAvrAfgq9Qbkz3dBkX4tqGUsrpHw= Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-e164caa76e4so4800379276.1 for ; Tue, 27 Aug 2024 00:49:22 -0700 (PDT) X-Gm-Message-State: AOJu0YwjKm1Y6yG7r9aiGEzuAp30kOnWPT5iEVEJXn50zpMixxVqL26P rOIJVwA5MTlZkwaJSvYO3y7d/lRswLT73PnIUBxOVGbyo6S0mrqbP/L3LntKOPZDT/2ID2hC1S9 8xWwAiMUVgzje1NTuMZvUyE+o97Q= X-Google-Smtp-Source: AGHT+IHs9tQjfxMihKkYzhDIOIWlkoANJ0MIGiDp/8SYylU9WuavTS2kj48YUR6K/X1e/QJsMyaGlMcBVuPzzZCukK4= X-Received: by 2002:a05:6902:1b8f:b0:e16:52ea:831e with SMTP id 3f1490d57ef6-e17a85e10f8mr13334011276.34.1724744961250; Tue, 27 Aug 2024 00:49:21 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 27 Aug 2024 09:49:09 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PHP-DEV] [RFC] Default expression To: Bilge Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000be6be00620a57ae3" From: jakob@givoni.dk (Jakob Givoni) --000000000000be6be00620a57ae3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Aug 26, 2024 at 11:58=E2=80=AFPM Bilge wro= te: > In case it matters, my initial inclination was also to do what some other= s > have suggested, and modify the SEND opcodes so that the default is not > actually looked up using reflection at all, but rather we just send nothi= ng > to the function and it can use its default as it would normally, but sinc= e > I had the good sense to ask an engine maintainer how they would approach > this problem, they cautioned me that this was the approach Stas took 10 > years ago > , > that that approach was horrendous (paraphrasing) and they would never > support something like that (mainly because there's like 11 of them and > modifying them all would be a complete mess). > Interesting. Can you elaborate? There's like 11 of what? Best, Jakob --000000000000be6be00620a57ae3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Aug 26, 2024 at 11:58=E2=80= =AFPM Bilge <bilge@scriptfusio= n.com> wrote:

In case it matters, my initial inclination was also to do what some others have suggested, and modify the SEND opcodes so that the default is not actually looked up using reflection at all, but rather we just send nothing to the function and it can use its default as it would normally, but since I had the good sense to ask an engine maintainer how they would approach this problem, they cautioned me that this was the approach Stas took 10 years ago, that that approach was horrendous (paraphrasing) and they would never support something like that (mainly because there's like 11 of them and modifying them all would be a complete mess).=C2=A0

= Interesting. Can you elaborate? There's like 11 of what?

=
Best,
Jakob
=C2=A0
--000000000000be6be00620a57ae3--