Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28211 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78003 invoked by uid 1010); 2 Mar 2007 21:26:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77969 invoked from network); 2 Mar 2007 21:26:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Mar 2007 21:26:55 -0000 Authentication-Results: pb1.pair.com header.from=brianm@dealnews.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=brianm@dealnews.com; spf=pass; 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:34033] helo=smtp.dealnews.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/28-04700-C9698E54 for ; Fri, 02 Mar 2007 16:26:54 -0500 Received: (qmail 9063 invoked from network); 2 Mar 2007 16:26:49 -0500 Received: from unknown (HELO mail.dealnews.com) (10.1.1.7) by -H with (DHE-RSA-AES256-SHA encrypted) SMTP; 2 Mar 2007 16:26:49 -0500 Received: (qmail 22000 invoked from network); 2 Mar 2007 16:26:48 -0500 Received: from unknown (HELO ?10.1.6.4?) (brianm@71.31.233.4) by -H with ESMTPA; 2 Mar 2007 16:26:48 -0500 Message-ID: <45E8968E.1070204@dealnews.com> Date: Fri, 02 Mar 2007 15:26:38 -0600 User-Agent: Thunderbird 2.0b2 (Macintosh/20070116) MIME-Version: 1.0 To: Guilherme Blanco CC: Pierre , Jakob Buchgraber , internals@lists.php.net References: <4B.08.04700.2DB68E54@pb1.pair.com> <45E87EA0.8020602@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Constant Parameters From: brianm@dealnews.com (Brian Moon) Guilherme Blanco wrote: > Why? Because $db should be a constant and could not be modified. > Allowing this, the 3rd party component could redefine some important > properties inside of your object and may cause unbelievable issues in > your appplication. This makes it sound like you let other people write code that you then include in your applications on your site. Is that right? Otherwise, don't you (or your team) write the code that goes on your site? On top of that, this 3rd party will be making the function. So, they control the definition, not you. You can call time pass as const. So, this is not a solution to keep 3rd parties from breaking your stuff. It makes no sense to me, but you can never tell what OOP person may jump in here and think it is the best thing since left handed backwards inheritance or something. =) -- Brian Moon ------------- http://dealnews.com/ It's good to be cheap =)