Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31732 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18683 invoked by uid 1010); 20 Aug 2007 10:21:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 18667 invoked from network); 20 Aug 2007 10:21:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Aug 2007 10:21:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=vrana@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=vrana@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 217.11.251.249 as permitted sender) X-PHP-List-Original-Sender: vrana@php.net X-Host-Fingerprint: 217.11.251.249 maxipes.logix.cz Linux 2.5 (sometimes 2.4) (4) Received: from [217.11.251.249] ([217.11.251.249:52856] helo=maxipes.logix.cz) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 94/62-30391-C2B69C64 for ; Mon, 20 Aug 2007 06:21:38 -0400 Received: from vrana.iinfo.local (hroch.iinfo.cz [213.151.94.139]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by maxipes.logix.cz (Postfix) with ESMTP id 1D3C1BCBFF for ; Mon, 20 Aug 2007 12:22:16 +0200 (CEST) Date: Mon, 20 Aug 2007 12:20:42 +0200 X-Mailer: The Bat! (v2.12.00) Personal X-Priority: 3 (Normal) Message-ID: <732091812.20070820122042@vrana.cz> To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Undefined property notice From: vrana@php.net (Jakub Vrana) PHP have the Undefined variable/property notice to inform a programmer about using uninitialized variables/properties. While both $b = $b + 5 and $c += 5 issues the notice (and also $a["b"] = $a["b"] + 5 and $a["c"] += 5 in case of arrays), in case of objects only $o->b = $o->b + 5 issues the notice but $o->c += 5 not. Shouldn't be the notice issued also with $o->c += 5? It is clearly usage of an undefined property. Jakub Vrana