Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128444 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 lists.php.net (Postfix) with ESMTPS id 62AF11A00BC for ; Fri, 8 Aug 2025 20:22:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1754684474; bh=uDhAQvUo4iQaeyBWu+4KRPnrDx2jYyWjWHJhm7OXqUQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=h/CaUZ1OtY0CcQyIa4JQy6kqRIROy9Na/RNtbEi98sygFuGnCrE9XYi4kazUqf6I9 mxZ7zb3bpENkJ3uJuePUJd8iROFegI4Vvb3WdS3XfX2RXdIumwd5x/ukd+kwEt1yqk CLc3TCre1WdMZwYkIR8p6Kma9/YP21o087f9fGiEDDGDJr4kB3qD92yUG8FRrEADa0 5R133QyOpDVeBkMXRqZcs56rxjIydj2tY3EFdJ54CW2fgtIadQiXp4Ilc4Gb7GwF/C F6Fn++3MArXkonZMYyFNYTx+oYOEVhBbDkHp+b4W7cZunZ22iMPrURrSz9xwFXKfBh bsSLTxBQ3VNoQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7B39018006E for ; Fri, 8 Aug 2025 20:21:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from sonic307-54.consmr.mail.ir2.yahoo.com (sonic307-54.consmr.mail.ir2.yahoo.com [87.248.110.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 8 Aug 2025 20:21:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1754684559; bh=8xNdo6D6FUDd7GhmS0tyUQdfLDWs1CaJbxuiOUMzh0Y=; h=From:To:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=fl79wsJesDs69wcD/WzBwowWlmkFcRQU513kNYTrVdvdJu0sTPc7bprwg4ejThFtHlKX6fQ9Ak1tCCUCa+eqC7Md6aZIGmSW0JDEW4bPhp8Z+kDW2SbOSuktXwAuIGkwt0BUplSQsj22aLJTgbXMUA3Aln/WJ8jGWmiMkoKtaCXG9HXfGbSCXini2CSmlaBpS2KbYOYjE049PpKjo4qvvL4HnWse/EYJByFt4ZHM9t8xkjJJflIy4Va3uMyqFhGOZkMS7M+/rwLiEEDLg0vsLZn1/cbqGieRjF1mSVEsjg8F4nTke80sWFW5cWCoUxK9BWCSYfyLOR3OFTVk48x/TQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1754684559; bh=57UqzONlHrouRPGfc9o1GN8NyOdryaWVH40u5wXp5ds=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=S0mgCgvUZ7zDrR9GpZMaPUhuPyYXGMV4V9KWI5nWwqQV6rzkfa04LvwTd1Z2lR+NuAuNsjS9wSsvzQjV/KTPz4ppNE+K8qBYmgdzbt66v6j7GiXdEbjK33CA1wJuh1NMb31MQCN31cXqpZ/ehYv3zEFjb5m85JpZKSdcoNvbmjJDtmdBI7+fFA6ftuhnm9upeePU2/o4h/cNSzTiuWLWcHrsNuCu+Q/+aF91hw8gEWHCYNTFIS5g3/aeAYvQA4ymgpaljETlBA6Vj77KxtinvzYj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_tZ7jZxZ1PU5KFfJ2G5Cl6143hsiMlxgd8s2lLcEjUeqa.IZHjNWPY6YU9 iHR5xDvIDw20X0v1V71mbUis34cuR.4HG2ivtt2s8iNWjwtDcN7F8h_9GADQebITQRYpDe2R7MLg ZZgM1fzsdMhSLXFb57PASKkx_lXWdmjEQUUrbyp8xjhksOVCIByqDsc_0eTaz8teg.ye1atbhY1k AwBa1hbcdZ1tLNfsS4RNTILRALgiZlb9WMewDtxC1hUx6rzOxZg9wHIdcBADV62rysQ-- X-Sonic-MF: X-Sonic-ID: 702e336a-9827-4b5b-8b7b-720c3364e4ad Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ir2.yahoo.com with HTTP; Fri, 8 Aug 2025 20:22:39 +0000 Received: by hermes--production-ir2-858bd4ff7b-sxz22 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 6a917eccafbf9d2650ebbf8bdd5d618d; Fri, 08 Aug 2025 20:22:34 +0000 (UTC) Content-Type: text/plain; charset=utf-8; format=flowed Message-ID: <1754681940016.3857794334.1617046696@yahoo.de> To: larry@garfieldtech.com, php internals Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 8.5 Date: Fri, 08 Aug 2025 20:22:33 +0000 In-Reply-To: References: X-Mailer: Vivaldi Mail User-Agent: Vivaldi Mail/7.5.3735.58 Content-Transfer-Encoding: 7bit Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 From: hanskrentel@yahoo.de (Hans Krentel) On Tuesday 29 July 2025 21:43:39 (+02:00), Larry Garfield wrote: > On Tue, Jul 29, 2025, at 2:22 PM, Hans Krentel wrote: > > On Monday 14 July 2025 15:29:31 (+02:00), Larry Garfield wrote: > > >> Is their use for quick hacky scripts worth the cost of reserving a symbol that could be repurposed for something else more generally useful in the future? (Not immediately of course, but eventually.) > >> > >> --Larry Garfield > > *snip* > > > My educated guess is that I don't need to explain the benefits of > > _template literals_ over ordinary PHP string literals for Larry, but > > for those who are curious, this is inspired by EcmaScript and you can > > try it out in your browser or read on MDN about it. > > Indeed, that's the sort of future reuse I was thinking of as well. Yes, I have hoped, so good to read! Do you know by chance this has gotten some movement towards that form of reuse in the past? I'd be interested. > But having this be a template: > > $foo = tpl`Something $here`; > > But this run a shell command: > > $foo = `Something $here`; > > Strikes me as a security nightmare waiting to happen. Oh, that was not intended. I need your precise eyes for this, and starring fearfully at the snakes is certainly not good for that. Sorry! That suggestion is the migration form. Naturally, this needs to be properly packaged, you can't tell users that template literals are there and leave them in the un-tagged form as command substitution. Who would do that seriously? Users of command substitution would have the opportunity to convert their backticks into a predefined, tag-limited form of a template literal. That is fool-proof, and it can't be conflated. Therefore, there is no unguarded use of command substitution, this is inserting into the transition for existing users that are using backticks as they already do today. My thought in the margin was that of a birthday present for the 25th of the backticks and users of the language (the global 50th is in 2029.) Best -- hakre