Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119931 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 6089 invoked from network); 11 Apr 2023 14:48:18 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Apr 2023 14:48:18 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2AF971804D5 for ; Tue, 11 Apr 2023 07:48:18 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 11 Apr 2023 07:48:17 -0700 (PDT) Received: by mail-qk1-f169.google.com with SMTP id bi39so9614712qkb.13 for ; Tue, 11 Apr 2023 07:48:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681224497; x=1683816497; 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=ZqB3tHxK6wdentVanosnwIb5DrxTIa3gAXKvSEUbdAo=; b=RMi9hlr7hws6B3Aw05Dd0pLCrrLrwoT2Ihw18fPkK2phRS0zMFFEkIUM7wVAUFwBLA jTZPSFIF52Ke0pJKN0XrQ9yLvZ37af2gFkVe3L8UnIIOQsR2MKK1UYRi95vvWmdQ0dr5 q545pOuutC84wIEDYpb8zOzLDKc9PTFmWXV/ADE4yObtFsEVfx2CQxidGHOXo1Rc3GoR 9ux5z3esD9kowhPLOzwPeH6vHFX+f/ToS051PU0QDtNpMyWCfyZ4QnAiMQveBPI9M4bJ 1cEV+wV9BNV1LCgDu84DWfw77UvrYVPwtJj6cMcghcoesozAkUHM3gdMAsIk4MfaGaRy 3rbQ== X-Gm-Message-State: AAQBX9fsf4GE6iDHv3sSmTfqZ4m9tbTPpOEEsuZhMNuf+ptt/v11T0Bt BPPKY2XrrgkIZifAiZaCBqbS4Hab73GZMCbsvB69Hg== X-Google-Smtp-Source: AKy350aOuO5ckSviHh2CKU/5VeJF5dXdogfGSGCIDzHSU2lNiUEpjE7imMu2BEAlBkEmOF6QLkwR1WBLXNn0t6et1IA= X-Received: by 2002:a05:620a:31a2:b0:74a:28c6:c1b3 with SMTP id bi34-20020a05620a31a200b0074a28c6c1b3mr4248644qkb.13.1681224497279; Tue, 11 Apr 2023 07:48:17 -0700 (PDT) MIME-Version: 1.0 References: <8abbed60-5569-4eca-ad12-957877feed9b@app.fastmail.com> In-Reply-To: Date: Tue, 11 Apr 2023 09:48:06 -0500 Message-ID: To: Jeffrey Dafoe Cc: Lynn , php internals Content-Type: multipart/alternative; boundary="000000000000f2cd6805f91094a9" Subject: Re: [PHP-DEV] Future stability of PHP? From: pollita@php.net (Sara Golemon) --000000000000f2cd6805f91094a9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 11, 2023 at 9:29=E2=80=AFAM Jeffrey Dafoe wrot= e: > Essentially the same thing here. Removal of dynamic properties will be th= e > next big one for my team. It's the deprecations that hit huge swaths of > code without really offering much benefit that are annoying. > > Yes, we have a _lot_ of classes. Also multiple versions of Zend framework > that we backport to. However, I see in a subsequent email that this is in > preparation for improvements, which makes it more tolerable. > > To clarify; Are you saying that you have a _lot_ of classes _which make use of dynamic properties_? A class where properties are predefined is unimpacted by this. stdClass is also unimpacted (as it implicitly has allowdynamicproperties). The only classes you should need to add the attribute to are ones where you're using them, essentially, as typed associative arrays. I'm surprised if that's what you have, because it seems like a lot of extra effort to give names to what are essentially anonymous structures. The advantage of providing a name should be that you get to know what properties will be present (and perhaps that the values therein are validated or typed themselves). Can you expand a bit more on your use-case? -Sara --000000000000f2cd6805f91094a9--