Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124154 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 581A21ADD75 for ; Mon, 1 Jul 2024 17:29:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719855051; bh=uE0WeuPL2I/EYEUAxYWA1p/oDRr22feYj0GPhYFYKmQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GwMSkOLL9Au4mDGzEN7vYt6K6KMGyAdhfdtfrJYmN6W/n8Ej1Ny0wd6gMzl4dOFMA 0rNrpvFPYyR+FsF+SorTrdUCzAta2k96hOl7iMm/aXsh26WwF/Sqrdyrsvmp1RitvR huw7KVpsd3D9zW+atFMVIDg98l6PnMDykHr7BPCy1NBUGytrJWtLHoH11ntKMLe3KK 3WhLzvTRsOkx0hNA1b3r7wE08PspNdygqF0cF1c/tii88bLJfx7mFSVcqS9MgiKr3+ LSDjhk0sORsph4TsTm+Io0yp2j/tMulD8ayACTkz6kU5m9SYVcwxR6qMKu/gKMThbd 58CQIeYS/EQ+A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E1ECD18056F for ; Mon, 1 Jul 2024 17:30:49 +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.6 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,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 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 ; Mon, 1 Jul 2024 17:30:45 +0000 (UTC) Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a725041ad74so135217366b.3 for ; Mon, 01 Jul 2024 10:29:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719854964; x=1720459764; 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=qra/CWxfh7I5lsEzQoUZ6lClh/gOQrm7ViA8DUeB+Sg=; b=Z5Rzt1aYQa6QxA1VBd+sb7yL2+jzEvFiVXFwaXpRwsXqFWhl3MsYpu1TE7AcedHM0i g2RiZZ2M0b1YOVCqI3oiFk9iVgw4J2aYbMknPpK6awvmXGGRiuXqFEz7vabOhmdmTpTx 38EXRumk9vK+zPSH1L4lbvgwdW6glttAG0u89hDEi+s7+IJ6je6kQMFggX6yGAIVnZcC +Nvg83nzsSUSb0CU7o0YMWI78esal1GRbeRdmPggfFHDTqIfEXri5c7tS7NB8B6ck8FB tb2cJmcwmS6lsi2ZzeOiNG7mmzo+xgQIcpi+aSeTfOn+U5tQci8poATj2U5gjom4yG6o UmMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719854964; x=1720459764; 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=qra/CWxfh7I5lsEzQoUZ6lClh/gOQrm7ViA8DUeB+Sg=; b=XZ8XOscauVRPG2hh1uoAoH/aJHUAGeNSZlkekE2GbPwmNHgZaUgAmZQpAmcZzOE/6e oLMtlrzWnO2c9o20hBEi2KRnyOAnpS5OSSDC76zOgjdjjxE1c/uE01wms9VT9X9UBj9m shGPXBUaBdGnu7PeICPEz2k5Quddde/CCL7eQvZ44AhyDLgyebEFEoRp+KZc/hwx+XUF fcgMSfKjbbf1oS0yMyfzaWZFS4I/PHg1rCEtgN4U2RVc99gSf5UFSjwoddLIE0rucryZ 1GDV4RIcog9Vbu6TNKNQuIhkBy6mMbo058EzKakpXJDMC6iQbj7wkt7S0Z+wyPFjuuAx UA1g== X-Gm-Message-State: AOJu0YyaXw8gR1NePRZGT14wMkcZEWjSaXeor1eYpdb9tyq25PIyEF6d /oQ3M+FsHJHPlG6gc8c1MUgffbtIEzbq60KBOmS8MKp6XrF5kc0UYH9GGG+Mdh0xkNCc6h5GqTD f9UdMyTnMsWLLutessU8nl6a9VWY9gXUc X-Google-Smtp-Source: AGHT+IEAx4tU96LxCh4AiojGRlFge0L4te4L76544UzPtyHaRL0JX1nzd4xbxitQLKlmYgTa2K+GMD6EIZ83Ex6YrqM= X-Received: by 2002:a05:6402:84b:b0:57c:5f77:1136 with SMTP id 4fb4d7f45d1cf-5879f69b7bemr5384154a12.24.1719854963643; Mon, 01 Jul 2024 10:29:23 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 1 Jul 2024 19:28:56 +0200 Message-ID: Subject: Re: [PHP-DEV] [RFC] Property Hook improvements To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="0000000000002c607f061c32f059" From: kjarli@gmail.com (Lynn) --0000000000002c607f061c32f059 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jul 1, 2024 at 7:05=E2=80=AFPM Larry Garfield wrote: > Hi folks. As Ilija's been polishing off hooks to get the PR merged, we'v= e > run into two small revisions that should make life better for all > involved. One is a performance improvement that requires a very slight > error handling behavior change, and the other is enabling readonly in > selected (but probably all of the relevant) circumstances. > > I'd say we expect these to be uncontroversial, but this is PHP. :-) So I > will instead just note that it's a short RFC and open the discussion > accordingly. > > https://wiki.php.net/rfc/hook_improvements > > -- > Larry Garfield > larry@garfieldtech.com "A side effect of that optimization, however, is that we cannot proactively detect the bug above. Instead, it would result in an infinite loop, which would eventually trigger a a stack overflow." This got a small typo ("a a" at the end). This reads no different to me than infinite recursion between 2 methods. It honestly does not bother me, and any static analysis tool will be able to pick this anyway. Sounds like a free performance gain to me! --0000000000002c607f061c32f059 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Jul 1, 2024 at 7:05=E2=80=AFP= M Larry Garfield <larry@garfie= ldtech.com> wrote:
Hi folks.=C2=A0 As Ilija's been polishing off hooks to get t= he PR merged, we've run into two small revisions that should make life = better for all involved.=C2=A0 One is a performance improvement that requir= es a very slight error handling behavior change, and the other is enabling = readonly in selected (but probably all of the relevant) circumstances.

I'd say we expect these to be uncontroversial, but this is PHP. :-)=C2= =A0 So I will instead just note that it's a short RFC and open the disc= ussion accordingly.

https://wiki.php.net/rfc/hook_improvements

--
=C2=A0 Larry Garfield
=C2=A0 larry@ga= rfieldtech.com

"A side effect of t= hat optimization, however, is that we cannot proactively detect the bug abo= ve. Instead, it would result in an infinite loop, which would eventually tr= igger a a stack overflow."

This got a small typo ("a a&quo= t; at the end). This reads no different to me than infinite recursion betwe= en 2 methods. It honestly does not bother me, and any static analysis tool = will be able to pick this anyway. Sounds like a free performance gain to me= !


--0000000000002c607f061c32f059--