Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84221 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78820 invoked from network); 3 Mar 2015 09:55:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Mar 2015 09:55:37 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.179 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 74.125.82.179 mail-we0-f179.google.com Received: from [74.125.82.179] ([74.125.82.179:45111] helo=mail-we0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3D/41-03783-81585F45 for ; Tue, 03 Mar 2015 04:55:36 -0500 Received: by wesp10 with SMTP id p10so36506393wes.12 for ; Tue, 03 Mar 2015 01:55:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MFch0Bg584iHsSA/xPRIeyz/xdLnZqgLGEuoHsmPgFE=; b=MuBUnVncSseoCK9C61uemWv5q8J92j2cbXD/Mp5AUzjidpeB+KYIDO+Hajbh2ja9OT sJcjt/Wm9+BStj6GDT/vJYPG303i5ojVI65wQH0KxhoHIrVgaC1jWt1jOAdtDQhOudIa jaY+ICSZXSsXqXFEJm3ZpIfjBMmvpIznBJ9AN9eGyV289uunNv5ewa+RPQ06KMdnCLN3 h0+bKRRLmYccm4T4AN6h9w5eOME2mMPtbgIrKyDDPBYw8V1yZeWpqlj9DxR6c+F96LBV gaYj/Rcu/OxI/2djEUeERLCzWdnat29lQ+7jx1H1HyyPdAMfU1aJ/S82H8C9a/Uk8smO H0Ig== MIME-Version: 1.0 X-Received: by 10.195.12.71 with SMTP id eo7mr68792717wjd.3.1425376533344; Tue, 03 Mar 2015 01:55:33 -0800 (PST) Received: by 10.27.10.168 with HTTP; Tue, 3 Mar 2015 01:55:33 -0800 (PST) In-Reply-To: <54F4ADED.2090708@gmail.com> References: <54F4ADED.2090708@gmail.com> Date: Tue, 3 Mar 2015 10:55:33 +0100 Message-ID: To: Stanislav Malyshev Cc: Julien Pauli , Derick Rethans , PHP internals Content-Type: multipart/alternative; boundary=047d7bb04ee4f0f6b405105f55a3 Subject: Re: [PHP-DEV] Reclassify E_STRICT notices From: nikita.ppv@gmail.com (Nikita Popov) --047d7bb04ee4f0f6b405105f55a3 Content-Type: text/plain; charset=UTF-8 On Mon, Mar 2, 2015 at 7:37 PM, Stanislav Malyshev wrote: > Hi! > > > About the accessing static property non statically, I would have thrown > an > > E_ERROR : the property simply doesn't exist. Class properties should be > > accessed using the class, not an instance of it , IMO. > > Sometimes, there's no fixed class but there's an object of this class. > Doing something like $klass = get_class($foo); $klass::property is > possible, but $foo->property is easier. > Doing $obj::$property is possible as well, it does the same as get_class($obj)::$property. Nikita --047d7bb04ee4f0f6b405105f55a3--