Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127736 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 82D781A00BC for ; Mon, 23 Jun 2025 05:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1750656144; bh=2OBBGPqT7TmVz+jEmXAQaiHuXbLFjVD/pmxG7bCLOvw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=bo+cmlhpe3REsUgSB90CmWTb8/hZQA807kwmcZYNpx/6qhn5xFOB+lTLDrew6UJ8e 9aumo/1+s5MQUIonzo8S02NofsozQuakK6YGJTXFgzFoRJhuvsVdZIf7QTnYviXUdN QrJ1yK6d2DE186xYljNtVSLl5joKffc+hti0K6LgoQRUFnNl83qcS7n8f46piuppaF OTxDbEqfA5oTSoc18iBmKK67EEtSifnsF0DyVvZ9YUgKv4O021wX63FRmUc5Tiz5SM YG20QPD08ktcIv60nCZ0GyjF3z5jRXMQGp6oZKZVXbCWB37BJ3A1hsOLDRr/0LULCK gSdyns/CwwNbg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 21963180056 for ; Mon, 23 Jun 2025 05:22:24 +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=-0.4 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,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: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.181]) (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 ; Mon, 23 Jun 2025 05:22:23 +0000 (UTC) Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-e817b40d6e7so3023308276.1 for ; Sun, 22 Jun 2025 22:24:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750656260; x=1751261060; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cQRSWziA2YBTTR0gVIMu/t3WqtgCzU1Qri8wm392TT8=; b=VdX7ztA3oezpYDrnOVayMIzgsNTcofdDOIjGXa1J4giujs8RQqSi+CH6l5McRG89/W pXnacNuJt211qxRX03gkRx6nusXiabss4W0V8RoW401Zd2PUpDhYGNDQk+tsJ0JnuH3I D/g0/0t8O4g90L30BabFf8dOScwxR2KIsbvZrvNP/fjyhABcTw+0LERG9K+r6evoZfyk N3mRH96O4By3fsfBY86PUfeXKeUsArEPn/PP3/CTVqAdqICSTEs/5lv5a3TgmKGWM9iE xwOIRhY2/Bg9ME2yqGj7WgFurPWu5k1xEgpAg+3gcX9hg4Ir0Vom1l3TF8x2fgr1HMRK B8IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750656260; x=1751261060; 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=cQRSWziA2YBTTR0gVIMu/t3WqtgCzU1Qri8wm392TT8=; b=EQM1J46Er8OYaKi6dbr61TQVrjGQo3suy/rx4vnSHuoO2o6BNKsIFH07oWSkfCcnFp Yzd6JeAzX1a5NM/onK1jU04/3rWHIW2w232+q1pczJtBaumDVwIj4HjsdC7vZPJD0CR9 BPzXXUks8BO7SIq4Px+oXwIhaniNJ13mXZCUoZllSMqOw8cbjdpVYbL9DJLYjaRI1/9r hHOQm/utBk6PBl53X5XN3AxEcQLp3Ztl6S5ixT8pAXh9gMks8cYQZ/OBdEsadyhs233Q cd+qHnYH0mRZjCjDshWDnL52aVQm2hu3Qwu7dRooiVLOsqrC91Uf3oZTmOFJfW9y4zi2 h2Uw== X-Gm-Message-State: AOJu0YyzrcIDSKmE3XO6sIX1w8puYhLUpcgjUIu4off+aCwtoXzlyW8x hGjUm9KODRRtB5mCd0RGz5TBRdizHZmRIS3d1c8qdzKCQ72+LqEsdUp73C+Jfk4on6gYSfpuqZr SqNo4O1keby5Wu1UAUpCkNO35o4cfsl8= X-Gm-Gg: ASbGnctjhBotRMqpeERoOv0NCHzWTncjNbR7bibuBbCeIPuOPjBOHEe621Gf55XQY2k sCf1BWxJHhJsWgVVT/oYntv0Vjw4M3wcV55QQvXcfdMBf5E1K1aLBWJWaYR7gsJ3vw5t3M04ymC 68mCXl2qwAl7YKJ6k+DI33u9rx9Musu+1gRIF/5MDTCw0= X-Google-Smtp-Source: AGHT+IHb+9Jqq0BEfkfT1Epz3CcbpLhLIiRusN8cJTVVAhe+3zv64OUhJmaI/ECUggogxQNtW0RiqDrThoOtQHlr0AU= X-Received: by 2002:a05:6902:18d3:b0:e7d:a7c7:3f34 with SMTP id 3f1490d57ef6-e842bcf3603mr13799669276.32.1750656259726; Sun, 22 Jun 2025 22:24:19 -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: Mon, 23 Jun 2025 08:24:08 +0300 X-Gm-Features: Ac12FXxBdA9OVYiMuL58KZFFJSS2DGPdiWkDB4uNFZFv1ZZcTPGeUiluu4nc8Mo Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] #[\DelayedTargetValidation] attribute To: Daniel Scherzer Cc: php internals Content-Type: multipart/alternative; boundary="0000000000007c22f10638366c73" From: drealecs@gmail.com (=?UTF-8?Q?Alexandru_P=C4=83tr=C4=83nescu?=) --0000000000007c22f10638366c73 Content-Type: text/plain; charset="UTF-8" Hi Daniel, internals, On Wed, Jun 18, 2025, 02:29 Daniel Scherzer wrote: > Hi internals, > > I'd like to start the discussion for a new RFC about adding a > `#[\DelayedTargetValidation]` attribute. > > How about completely disabling errors caused by a bad target at compile time? And just ignore the attribute, that can be validated at runtime if needed. IDEs and static code analysis would show the problem and that might be enough. -- Alex > --0000000000007c22f10638366c73 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Daniel, internals,

On Wed, Jun= 18, 2025, 02:29 Daniel Scherzer <daniel.e.scherzer@gmail.com> wrote:
Hi internals,

I'd = like to start the discussion for a new RFC about adding a `#[\DelayedTarget= Validation]` attribute.

<= /div>

How about complete= ly disabling errors caused by a bad target at compile time?
And just ignore the attribute, that can be validated at runtime i= f needed.
IDEs and static code analysis would show t= he problem and that might be enough.

--=C2=A0
Alex
--0000000000007c22f10638366c73--