Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118849 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 29041 invoked from network); 19 Oct 2022 16:58:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Oct 2022 16:58:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 19C07180503 for ; Wed, 19 Oct 2022 09:58:25 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-vs1-f42.google.com (mail-vs1-f42.google.com [209.85.217.42]) (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 ; Wed, 19 Oct 2022 09:58:24 -0700 (PDT) Received: by mail-vs1-f42.google.com with SMTP id h3so18298299vsa.4 for ; Wed, 19 Oct 2022 09:58:24 -0700 (PDT) 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=aDllhB0Qs/PdrTedgMepBkNIqEyrqDWvTsLvWKifbzw=; b=QxIArMo+dbYwHf5ZBVaMKTjm/oOiBXAmi8iUxEhGn3uBx3YY3fVey1xx3toA5OEuxh J/d8X4PhKnuxsQS1psBW7An3GpVgX/7BG8qkHG5lLP3vMDF+Acx71iRurhQYDKX5kwvr TseFs5Z9iaLyzVE4DDpuJkR6uOUjKYq+Efxa5LjBCIxkuK3vNt/L1NbFSW0gv78C095f w+7ELg0qzNe05rRq3Jedtt8+hb2QUXTMAMLEDdnRX2u/Z8NjoieUQpoHTMNT8aO6yhZ7 wxVwkHLAS7RvvqlwXzqraSYiLgo2miOY4Jq6Eus2Y8eKYZ+6RPK9vYt8Eneog+U23O2X +aSg== 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=aDllhB0Qs/PdrTedgMepBkNIqEyrqDWvTsLvWKifbzw=; b=jJguUw/naetsLrjSg3GyoPyxFIYZ8IihWJWHv9sualaFp9/33Km4m7JsfMPy5vaQ19 3kglqPRQ7Nrckdr8yokt/ec1S9QSk81rw7aa6xfIC6HLotI43H7CA79jIEC3Ju05C91m US66rC6zp6C+L6H53mGSuKKy/JxV0zVxRtmBes1fLvOfqR6eKepPtwKoNr549IV4Sx37 G/OT2ZqY4oiTvIV163weG9NJcTpXcngzhTewBnBfELK0NC9lk8+kruh/43A9RAOcB+Xy ruWmursWCI2fUAXCTSMbaxAlWEylpa3I6aq+WfojhsyvNxfopOCmzpRBf9R/1AOKqImV Yudg== X-Gm-Message-State: ACrzQf0wxBTWExiupSwrg3hQKRdVZxzR7li+pYDDTnlrSb90Y0Ur16cs OgTUY6SoDn6suorqqxzT1dClOM8l31u7ZbAQY1w= X-Google-Smtp-Source: AMsMyM6UE6rkb/6GzIfcdy9nRJ/Oblg5XsXJs9mxl6YIVWCQBzMrD1FM+NZzxUG1jBJGI2CiQDZMjF5VymIHw0vxSRE= X-Received: by 2002:a67:e215:0:b0:3a8:1164:8438 with SMTP id g21-20020a67e215000000b003a811648438mr4109479vsa.84.1666198703635; Wed, 19 Oct 2022 09:58:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 19 Oct 2022 09:58:12 -0700 Message-ID: To: Kamil Tekiela Cc: "G. P. B." , PHP internals Content-Type: multipart/alternative; boundary="000000000000db01b105eb661de7" Subject: Re: [PHP-DEV] Should the engine be able to pass variables by reference of userland functions From: jordan.ledoux@gmail.com (Jordan LeDoux) --000000000000db01b105eb661de7 Content-Type: text/plain; charset="UTF-8" On Wed, Oct 19, 2022 at 7:37 AM Kamil Tekiela wrote: > Hi, > > I am not sure if we should still support it. But I don't think it's > unthinkable to expect such feature from PHP. However, personally, I don't > find pass-by-ref that useful in general. The question is whether this > feature is used a lot in the wild. > > If we decide to drop support for this, it should probably go through a > deprecation phase. > > Regards, > Kamil > Pass by-ref is used a LOT in the wild, but I didn't interpret George's question as "should we remove pass by-ref from userland entirely". Surely the engine also supports pass by-ref somewhere in the VM as well as the place that was mentioned, it just does it in a different way? Jordan --000000000000db01b105eb661de7--