Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25692 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91689 invoked by uid 1010); 14 Sep 2006 17:45:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 91673 invoked from network); 14 Sep 2006 17:45:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2006 17:45:49 -0000 Authentication-Results: pb1.pair.com header.from=tslettebo@broadpark.no; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=tslettebo@broadpark.no; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain broadpark.no from 80.202.4.58 cause and error) X-PHP-List-Original-Sender: tslettebo@broadpark.no X-Host-Fingerprint: 80.202.4.58 osl1smout1.broadpark.no Solaris 9 Received: from [80.202.4.58] ([80.202.4.58:62119] helo=osl1smout1.broadpark.no) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/21-45066-A2599054 for ; Thu, 14 Sep 2006 13:45:49 -0400 Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J5L00FE3FZC9F90@osl1smout1.broadpark.no> for internals@lists.php.net; Thu, 14 Sep 2006 19:45:12 +0200 (CEST) Received: from pc ([80.203.129.59]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0J5L00C5AFZCZQ20@osl1sminn1.broadpark.no> for internals@lists.php.net; Thu, 14 Sep 2006 19:45:12 +0200 (CEST) Date: Thu, 14 Sep 2006 19:45:31 +0200 To: Brian Moon Cc: internals@lists.php.net Message-ID: <003e01c6d825$92fc36b0$9a02a8c0@pc> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Mailer: Microsoft Outlook Express 6.00.2800.1807 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 8BIT X-Priority: 3 X-MSMail-priority: Normal 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> <45096A7D.3070706@dealnews.com> Subject: Re: [PHP-DEV] Return type hints From: tslettebo@broadpark.no (=?UTF-8?Q?Terje_Sletteb=C3=B8?=) > 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. I completely agree. :) _Then_ I understood you; I thought you meant my example(code) was "crap"... :) Another weird thing of PHP's implementation of OO is that propagation of constructor calls to the base class is not ensured, something I can't for the life of me understand why, but that deserves its own thread... Regards, Terje