Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25683 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8759 invoked by uid 1010); 14 Sep 2006 14:43:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8744 invoked from network); 14 Sep 2006 14:43:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2006 14:43:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=brianm@dealnews.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=brianm@dealnews.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain dealnews.com designates 129.41.69.185 as permitted sender) X-PHP-List-Original-Sender: brianm@dealnews.com X-Host-Fingerprint: 129.41.69.185 smtp.dealnews.com Linux 2.5 (sometimes 2.4) (4) Received: from [129.41.69.185] ([129.41.69.185:60559] helo=smtp.dealnews.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/C4-45066-18A69054 for ; Thu, 14 Sep 2006 10:43:50 -0400 Received: (qmail 17918 invoked from network); 14 Sep 2006 10:43:11 -0400 Received: from unknown (HELO ?10.1.2.17?) (10.1.2.17) by 10.1.1.24 with SMTP; 14 Sep 2006 10:43:11 -0400 Message-ID: <45096A7D.3070706@dealnews.com> Date: Thu, 14 Sep 2006 09:43:09 -0500 User-Agent: Thunderbird 1.5.0.2 (Macintosh/20060406) MIME-Version: 1.0 To: =?UTF-8?B?VGVyamUgU2xldHRlYsO4?= CC: internals@lists.php.net References: <0a1301c6d64f$8af01c70$a900000a@adstate.local> <74293252.20060912230042@marcus-boerger.de> <00b501c6d6b4$632b7e90$9a02a8c0@pc> <10845a340609130053n395632f4ka5bbed3e49ce6ad2@mail.gmail.com> <0d4001c6d71a$fa124260$a900000a@adstate.local> <45081ABF.2020804@dealnews.com> <005301c6d768$7a5fb0e0$9a02a8c0@pc> <45087C81.3030008@dealnews.com> <006701c6d7c2$414424d0$9a02a8c0@pc> In-Reply-To: <006701c6d7c2$414424d0$9a02a8c0@pc> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Return type hints From: brianm@dealnews.com (Brian Moon) Terje Slettebø wrote: > The above was a contrived example, meant to illustrate the point. What's so > bad about it? That it doesn't check the return value? I am not worried about the return value of the method. I am concerned that $this->something is unset yet does not throw a notice. This is only true for properties of objects. Any other variable in PHP does not behave this way. IMHO, PHP should either initialize that variable to a default type and value or throw a notice when you try and use it without setting its value. -- Brian Moon ------------- http://dealnews.com/ Its good to be cheap =)