Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105206 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 79144 invoked from network); 10 Apr 2019 16:04:26 -0000 Received: from unknown (HELO mail-it1-f169.google.com) (209.85.166.169) by pb1.pair.com with SMTP; 10 Apr 2019 16:04:26 -0000 Received: by mail-it1-f169.google.com with SMTP id f22so3166885ita.3 for ; Wed, 10 Apr 2019 06:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Jq9pOQ1jTpwP3ceVQRTSNiO2iss7TuNapvOE37StsuY=; b=Py1JPr02qO59STz3BnJfRoA2E/h7XxMetePyU+aDatCmXbnwG3h+5+KJL9CxgN31kD qoEcKRvvZGYckZlnFEoPtxjT3waBA0H9S9PgnnoUMX/Ti1LqzcpMeISo39tQXe168fe/ gnpg3Pw+t3YQ3IYyzAcx3vLVIpo6Z8b4VrK1JHnALu/GZY1n0OzRjWL+1G/yv9mp51C8 Ws8UYO0aPCBKVDCL/oIQihik7y04bS05pigtrjWr5QnkrW9fMbMiOuJZv/qbWShTub66 fEWmnRRg0WUqxzH4menUfrUvYD6QJoTQxiR1E+rM5D8WwpvJTVjvNvDWsjJbWaJQJdHs VMoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Jq9pOQ1jTpwP3ceVQRTSNiO2iss7TuNapvOE37StsuY=; b=WPOoOLqVXLkg7T3AnpB8/q2A0OT+Bl3wYhQkGGxuZKEMv/6xOOmBhtMNvcJcLbphQr iQmgTM6AnoW+ZlNZzAOlahsG4cMtMBlWo2vdVIz1qX4vHox7tvP6toLZzysj7O3dZ3wo pHSaNm9fl4z+b5oNf1tw4T6SWA+O0B3iR4qIO8Id1XpIKlqgU0cBs+7fqyzOPKgSd8yF xgQdRGkMzbZH225wtYpeN5dCebhpd2MoD2yuia3mtEA7Mnr3lp4z4MAXQFV50R3VnHln w7FvdOdxsvQrgXHjMTIUKNdHw/upSTaCG06IKVgWGNGQFa0PgVxPiSBR6QLoXEIHon7W e0yg== X-Gm-Message-State: APjAAAUR0xDGRxIn7sQjPkUFwSNDM1NH4Wt06uZHDLfCfdln1qzsAPZB WgXDqg1zhaeN9xg2IYAF85h+bDwK5GeX3Ujf+G0= X-Google-Smtp-Source: APXvYqxyiR4h/cwOq0ZvuRXutxHRnlWaMtMRNvwWrmGpbJWRR6ba/lz6PLGIzgm4AYfPPazeO2E3U6YkIm/FIPmlvmQ= X-Received: by 2002:a24:e04f:: with SMTP id c76mr3120848ith.113.1554901294373; Wed, 10 Apr 2019 06:01:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 10 Apr 2019 15:01:22 +0200 Message-ID: To: Nikita Popov Cc: PHP Internals Content-Type: multipart/alternative; boundary="0000000000004fe48505862cab96" Subject: Re: [PHP-DEV] Unset static properties From: benjamin.morel@gmail.com (Benjamin Morel) --0000000000004fe48505862cab96 Content-Type: text/plain; charset="UTF-8" > We could add support for this, but as the general consensus is that we'd much rather remove support for unsetting declared object properties (if we could cover the lazy loading use case in a different way), I don't think it makes sense to allow this. Ok, thanks. Just wanted to double check. Note that I'm actually liking the ability to unset declared properties for 2 reasons: - lazy loading, as you mentioned - ability to differentiate between unloaded properties, and properties loaded as null from the database (useful in data mappers) Ben --0000000000004fe48505862cab96--