Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127708 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 37DD61A00BC for ; Wed, 18 Jun 2025 12:22:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1750249253; bh=31BglpktNkL8VB3ObLC7xCJB1iSNiN5/LIoz1FVIivI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=iHJ+S+E+3GhPtUPlOmZmFit/MPne8vVR2VjNQ5J/ZaIdQrIoW7sljSNli4L6pPBGB gFOwnSy9WJFP/v/AguOXMtIU2DyfHzM7UbRPtiUoCWZzoxs3SV55TKKcRz25q/yq42 hw/Ak2IVnFZTrQuv0ziEwleqa0/1CeOLCRFQ9H86FwP76JPgrvTxgSPeeZQrtmUYWM Ny+CTID6+CtfDleAxB3Q9p1kkcZuLLIfO9LHdu5ixUnnWSEMq6PpGGJVvqUQwaJJdS cD9jpS1P7623lGzA2Xf6+qvcfe9F8dx//3X8EkgAkRWP9fdbKCNLDCkdFQVrXYok0Y BXVAF0qTACONg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1C5B518058A for ; Wed, 18 Jun 2025 12:20:53 +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_MISSING,HTML_MESSAGE, 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-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 ; Wed, 18 Jun 2025 12:20:52 +0000 (UTC) Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-ade750971f2so899634766b.2 for ; Wed, 18 Jun 2025 05:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tideways-gmbh.com; s=google; t=1750249370; x=1750854170; 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=31BglpktNkL8VB3ObLC7xCJB1iSNiN5/LIoz1FVIivI=; b=PelhpuA0WRNhr7JUzopoDKkhm6Zlp1hjFNtNWkWu/k4gGVYXqgbBTau1265FTxnbP9 HOmk7sHx6OYb8i3O2Wig1C/bPXo3ZJUPBpeM93BcgDSAMKsB3bhwLl/ENH72Sk0gWu5u HhbXjFg8dIy49YsxcQwwyiV4/tezIehogYO2LN8SEpNbHR8oia5j3Z+vlZWvwFqbCXBw PncA44zjyu3H+28MryZCrS3h5vAHU91UD6RBfURKXwCAi8de2jYLSt3c7zyJadDGF8z/ l5kEo8AMIdJRV1ylizBcuZlJB1NFgo88hN/6HmxpLjF9RdRAwqvNbazzZqSfGPrrEIYz vgSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750249370; x=1750854170; 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=31BglpktNkL8VB3ObLC7xCJB1iSNiN5/LIoz1FVIivI=; b=q4pJ0i2TazGyvMSnmdfdOpN3jecKFSGpU9LW4KCF6v1LKTRx2jkP889vzATCoTY7lY l9Js91jDKdXFv9gkOyrY0wemVQSIaneKXbmzZ8KKb9vQG+qWQ4+Fz2qNRiufyD87CEo0 gaMYdGSSSgMJfeb0KIe2lFcNjgxOdZqytUNBiJN5f2pLQvna/ArbyYh0DSgZNjYcglWr fphABlkb/mOSv314oQyQcJXAqYenETcn/QK036EHHrv+8WhAEOwo8whdNIirO1rMkQio qldept7v4kJ5Qvh8GEYaODN8atmd/438R6/x3rIJW76T/BH17KoExM/ft6d6X1r0Ppcp tGbQ== X-Gm-Message-State: AOJu0Yzgs+KGe3F7LRh2xt5CAG0c5tAhDBL9/YyIE2vX37mGDUmSX18a JFq9Oip8D6VQd9vNrofk/hJCovcogOhsxdk4/dYw08ocSsCn5puXdnfwAna0nQRmb6fCZLgkiwa 4rWjSJT8/4iGAUsowRXPy/iwfKUWs5+kVQdAol6Fwf3uvUE53zVDK37oTaw== X-Gm-Gg: ASbGncsOdQasP4812KTYc/hRc/yBqPEcfdvWXmTbbZuRJ1mYcr6Fq05iT+x/b29AZKw 5fFGItvHyY/zAw5npvfSDhKi5wfLZortfaaQdCXnf3d621K8qsEK+XDttdEO7uJcxUC3rUxr0Xy 0utSUEi+dxtdpr4MmRkSuP8nAKaS4Q5L+VEdwbSy9d8BK9 X-Google-Smtp-Source: AGHT+IHQRa8P8j633ZHo3Di3TB5mH8IY8Dfwqt83c0VoLruM8oGe0ECKGwkSmHAcn9rwPrMsvMsvEg9sl/W5JixbRiA= X-Received: by 2002:a17:906:4fd5:b0:ad8:8efe:3205 with SMTP id a640c23a62f3a-adfad4f585fmr1255931766b.55.1750249369478; Wed, 18 Jun 2025 05:22:49 -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: Wed, 18 Jun 2025 14:22:36 +0200 X-Gm-Features: Ac12FXzMmVDyIBdTonGlZId4rYLcb3bJREjkdmg4ljRWdmLyfrnScrZdNAd5R-8 Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] #[\DelayedTargetValidation] attribute To: Daniel Scherzer Cc: php internals Content-Type: multipart/alternative; boundary="000000000000efc0d10637d7afd4" From: volker@tideways-gmbh.com (Volker Dusch) --000000000000efc0d10637d7afd4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jun 18, 2025 at 1:28=E2=80=AFAM Daniel Scherzer wrote: > I'd like to start the discussion for a new RFC about adding a > `#[\DelayedTargetValidation]` attribute. > > * RFC: https://wiki.php.net/rfc/delayedtargetvalidation_attribute > * Implementation: https://github.com/php/php-src/pull/18817 > Hi Daniel, While I'm in favor of the RFC, I'd more like to see the default behavior of internal and userland attributes adjusted to work the same, with both having delayed validation enabled by default. Treating core attributes differently doesn't make sense to me. So, if that's someone you're willing to work on, I'd very much prefer that. But if there are downsides to this approach or if this is too complicated for other reasons, this attribute is a net positive in my book to make forward compatibility possible. One note on the example code: `class Base {` `class Child extends Parent {` \ Parent isn't a valid class name, and I think you wanted to extend from Base here? I'd prefer the example to compile so that they can be used for documentation later on where possible. Kind Regards, Volker --=20 Volker Dusch Head of Engineering Tideways GmbH K=C3=B6nigswinterer Str. 116 53227 Bonn https://tideways.io/imprint Sitz der Gesellschaft: Bonn Gesch=C3=A4ftsf=C3=BChrer: Benjamin Au=C3=9Fenhofer (geb. Eberlei) Registergericht: Amtsgericht Bonn, HRB 22127 --000000000000efc0d10637d7afd4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Jun 18, 2025 at 1:28=E2=80=AFAM D= aniel Scherzer <daniel.e.= scherzer@gmail.com> wrote:
I'd like to start the discussion for a new RFC about adding a= `#[\DelayedTargetValidation]` attribute.


Hi Daniel,
<= br>
While I'm in favor of the RFC, I'd more like to see t= he default behavior of internal and userland attributes adjusted to work th= e same, with both having delayed validation enabled by default. Treating co= re attributes differently doesn't make sense to me.

So, if that's someone you're willing to work on, I'd very= much prefer that.
But if there are downsides to this approach or= if this is too complicated=C2=A0for other reasons, this attribute is a net= positive in my book to make forward=C2=A0compatibility possible.


One note on the example code:

=
`class Base {`=C2=A0
`class Child extends Parent {` \<= /div>

Parent isn't a valid class name, and I think y= ou wanted to extend from Base here? I'd prefer the example to compile s= o that they can be used for documentation later on where possible.

Kind Regards,
Volker

--
--000000000000efc0d10637d7afd4--