Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129176 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 9AD861A00BC for ; Sun, 9 Nov 2025 18:23:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1762712597; bh=y89DJ2WTn/K29S8S7KlSbVxYkpK7yxhet+0k6RKCEfM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mXormj3o2ZR9LQSJrjbm3QGyqdKjwwJh5kXefPsDhZrNVn8007rQDbgfuRkAx9vqC Wb0uUQbpaiRVKZoxzj5U9Q4xNK0/8kTp0leAkGBNA8XHcX4Yn+iAv5DssoMV3vcdFz BhfNy6vM+Vc+H6nmPI8dHVfeTA4MzEQx7DVTEfqm/k0SkCjyj5q0vEoTXN/2QotqOL 89nguSfcPvDoPltztkgurayBMXpfOo5yKbOkoBcch1YODHYLa4GeKDy4atuTqtl0jn Z1I0+7s2HqX7xCUohIkF9BZDHz3JO6Vcs5F6MuFTNY189a2unhGOmrgLW0qgSGYX9s sTmn2wrAFDtpw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 630A1180041 for ; Sun, 9 Nov 2025 18:23:13 +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.6 required=5.0 tests=BAYES_50,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,T_SPF_TEMPERROR autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-vs1-f50.google.com (mail-vs1-f50.google.com [209.85.217.50]) (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 ; Sun, 9 Nov 2025 18:23:12 +0000 (UTC) Received: by mail-vs1-f50.google.com with SMTP id ada2fe7eead31-5d758dba570so1103236137.2 for ; Sun, 09 Nov 2025 10:23:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762712587; x=1763317387; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=f+5S2TThpyL0vHZqGGxrVRdHTIlE8KVpe4jbjfe4k50=; b=AzIQsqvGoLqBxJ41Aloeut3grYON0ZS1DXZ+bDklkhXsPB5vPlzV2iLXrnTfId4w0n i+ojuvj9KJKrUSPEB76qeRip3hJMTg6YkTXcmoToUsnYV1JhcyUlY4IwiDi2pMK79O1g WV3k8bCn1lBMvrtLGjawOrrNsHdZ33OPylX0xdhD2viXaqzaMsRHVzZekFx3qnzenD0i 0/qTz3B754E5nZgIYI1qSS4pbevQHVqWEu2lsOh6stV0Qbz3wZJjku7OXaHVuhAfNI0H WwD+dqbmkPwReITgivCZOsOCAymqst+VLzBrFI2Hqn/StWhhE/XMnSXEK9jv3KAH2bPn Ljaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762712587; x=1763317387; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=f+5S2TThpyL0vHZqGGxrVRdHTIlE8KVpe4jbjfe4k50=; b=HRVIykX550wqT+g/utsGoawdHqxo0nW4GZuxUUziK0aHb6bwuzj54RQawvTa2ttpM7 TBIxSTuRdbwb2/zIIqzrtKh4iT4c7/Q01KJDhycACt6kcE1PJ5rfwbbDzjUkApoC3+xm q4sLlrwWzZ7PL4LUt/OQY4yZxcNmnaUuGgkHvPZAxW70JodGXluYprjE/0/sXrZMvGrF XMNfDklytvt8xhtPuwjGrNO26z3H0s2bz57MmgYH0LrhcfxPbDA9uXTTgJciUnFMa7Jt ZDCwFX8N8Eahp7XBL5MvIREWmLLP4JmNdgGNhk+0xCLgCJle3NFSv8vh1WK0ViYA5Igm pk8A== X-Forwarded-Encrypted: i=1; AJvYcCWvqxJ/29oK1tlozncCQZESd2NqPoREvdR5JExBH2AZVBSb53uKWhokqIfzo/RpDWoJDbJEuK7GSPM=@lists.php.net X-Gm-Message-State: AOJu0YxeIBvAHIH4HZD3HUo64b7V366RpT6J0jHACupFF3Ok+KE/5wyv pzGlGaKphUICjR/n6V5RpBdqdCWQgJMw6JAL3X14tK8dxdAymHn6QCv3O470W10QvSB4gx4JLJQ 2U7GyLEU0i7f6QSpXpmaeeUEJugDphB8= X-Gm-Gg: ASbGncuT7CAaBTA6jLPMv6i5hFJtKwcsEjYBituQO/6442unI0GEa7uZkbtmLZyWYOj v6YKXtlJceXMfyHgtm+ocSM7BY/8+xIKmtjMYR8ht9wHIDtkNGwi262yibVgJoWEWF4N7IYysyN MGqM0oOJ7LK3o5nStHqjGzB0ofrSR/xKsVvfhl3AD/zVoAz75juCqQSmjX1md02DZcGrydQT1XI nfAv0FNRrqgs5LF14PoNjQPEn0nBDQuFw6jHJhqPgo0iuEawWypBGAwFMiJkXBwv2devD7jDAuk oIAyt3vYR/M7P7pkFt/uc5j30kc= X-Google-Smtp-Source: AGHT+IEKbZcKpTCjSmzduqJzDUz5IkAxh0dhyC3DTQcOI1RhGe31vYnwJb/lrNi9Kz1Hc4MpDteO2V101buSNC8Jiu8= X-Received: by 2002:a05:6102:390f:b0:5dd:8c81:d7ab with SMTP id ada2fe7eead31-5ddc452d062mr1881296137.0.1762712587207; Sun, 09 Nov 2025 10:23:07 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <96013f5a-8ce0-4738-87e6-109706408faa@bastelstu.be> In-Reply-To: Date: Sun, 9 Nov 2025 20:22:55 +0200 X-Gm-Features: AWmQ_blOEvi5usB8SOXlsToAOS9EVdgo2mQTy1xBQzCSU3jwCq8tOdMl4hZRVPc Message-ID: Subject: Re: [PHP-DEV] [RFC][Discussion] use construct (Block Scoping) To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: Claude Pache , Seifeddine Gmati , internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: edmond.ht@gmail.com (Edmond Dantes) Hello. > If the stated problems are a problem in practice or if they are mostly t= heoretical. Accidental retention of objects in unpredictable situations is a constant issue for applications that do not terminate after each request. > Possible solutions to the problems (such as the =E2=80=9CWeakReference ca= pturing of arguments=E2=80=9D). As a rule, any error can be fixed, but that is not an argument in this situation. A developer can certainly solve a problem if they are aware of it. The issue is that if you rely on references, they might never even realize it exists :) The problem is not fixing the error, but how easy it is to detect it. > If the described problem even exists or if it is based on a misunderstan= ding of either the RFC or PHP's existing behavior. Wasn=E2=80=99t the example above convincing? --- Best regards Ed