Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84177 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53683 invoked from network); 2 Mar 2015 18:37:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2015 18:37:39 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.180 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.180 mail-pd0-f180.google.com Received: from [209.85.192.180] ([209.85.192.180:42310] helo=mail-pd0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/F5-14834-1FDA4F45 for ; Mon, 02 Mar 2015 13:37:39 -0500 Received: by pdbfl12 with SMTP id fl12so10389706pdb.9 for ; Mon, 02 Mar 2015 10:37:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=2RoUALWQTaFK2DLktnO5jymXqrgASW23J3t4Z/M/wNs=; b=z9RxvAJ+kXXWPkuaQekNaDxYg1x5ReKZYC9lvgiwYzzrzqprc1Cn8GvKMr5PETt4CT N2Q3x9XhzmDb0cTVF5P0VHOs7lQ7TfMutcCWZJgw4kncVmVTHoOJ8wd5aJwwYpY0Pl8f 1PcYUVYOAVC8j4oANO/+6h32llcyxejUxGYa228DTFtIXa8t/CsWnfRAAzLnVUIx5Mrs WM3thJrwe/7W62PLy7RCyzJZxrljdCYICBTJAYc1ika71pxuf2dQ/p3hqA8KwHsl8ZIt VXveldbkWf1SoOJchYo5THSfgsqDrBYL8sIVr/ISxueUJPlkiJ1ELDxnfVJ5Pt7/ydwv XDGw== X-Received: by 10.66.159.167 with SMTP id xd7mr49585152pab.54.1425321454829; Mon, 02 Mar 2015 10:37:34 -0800 (PST) Received: from Stas-Air.local (tan1.corp.wikimedia.org. [198.73.209.1]) by mx.google.com with ESMTPSA id nd5sm12596180pbc.64.2015.03.02.10.37.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Mar 2015 10:37:34 -0800 (PST) Message-ID: <54F4ADED.2090708@gmail.com> Date: Mon, 02 Mar 2015 10:37:33 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Julien Pauli , Derick Rethans CC: Nikita Popov , PHP internals References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Reclassify E_STRICT notices From: smalyshev@gmail.com (Stanislav Malyshev) 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. -- Stas Malyshev smalyshev@gmail.com