Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48216 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1396 invoked from network); 5 May 2010 11:01:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 May 2010 11:01:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=svanpoeck@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=svanpoeck@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: svanpoeck@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:52847] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/5D-08048-40051EB4 for ; Wed, 05 May 2010 07:01:25 -0400 Received: by wyb34 with SMTP id 34so494332wyb.29 for ; Wed, 05 May 2010 04:01:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :organization:user-agent:mime-version:to:cc:subject:references :in-reply-to:content-type; bh=pNcBFr1D28QGVinPlFjDU1GESsaVoo7CPtB/bW0gUI0=; b=bAX4r3K06DfTCk0WSmS9cvwMQKOc2pdN9xKKBJYVZKNQxbsW9TmyqIUTCge2kwbJGA uDdsTfD5MQmz0l75MaRuHlOJ4Tmv5e993IK/wiQdKZooiB9uX+k0OVIZr31hrIJUHvQ0 eY9DL/zfHRU3rhVYhd3sMzcY7EefVIJBBXHFg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:organization:user-agent:mime-version :to:cc:subject:references:in-reply-to:content-type; b=eQTLyfGM8xkvClRO+ciZYtR9Zf//6HRc97KoMXnJII1Db6g78Uyz1HUD+Mene4FLKX HPeAB2xynVbZwVhlWHrs7M3r3/FGYhiXYRVDNQAcqEmVN9fmWAZvI7MKGuNk6NJukmrK ZAYkGWeP0R+1uANNUDcFWqwokZbgQAAjUL1Uw= Received: by 10.227.132.68 with SMTP id a4mr2655553wbt.44.1273057281200; Wed, 05 May 2010 04:01:21 -0700 (PDT) Received: from [192.168.192.5] (host.90.30.23.62.rev.coltfrance.com [62.23.30.90]) by mx.google.com with ESMTPS id x14sm57721818wbs.18.2010.05.05.04.01.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 05 May 2010 04:01:19 -0700 (PDT) Message-ID: <4BE14FFE.4010501@gmail.com> Date: Wed, 05 May 2010 13:01:18 +0200 Reply-To: Steven Van Poeck Organization: Meetic S.A. User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: Hannes Magnusson CC: Adam Harvey , internals@lists.php.net References: <4BE13D64.2010700@gmail.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------070602050006080401010804" Subject: Re: [PHP-DEV] Re: Turkish/Azeri locale support From: svanpoeck@gmail.com (Steven Van Poeck) --------------070602050006080401010804 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hannes Magnusson wrote: > On Wed, May 5, 2010 at 11:41, Steven Van Poeck wrote: > >> Hannes Magnusson wrote: >> >> 2. Make function/method names case-sensitive, per Stan's e-mail. Pros: >> fixes problem; brings PHP into line with most other languages; extra >> consistency with variables; possible performance improvement. Cons: BC >> break from current documented behaviour. >> >> >> There is no way this can happen. It will break massive amount of code >> and will cause major headaches for people using __call(). >> >> -Hannes >> >> >> >> Can you give an example of *consistent* code where this evolution would >> cause __call() not to function properly ? I'm afraid I can't think of any... >> > > Can you give an example of *consistent* code? Just any. Any at all. > Doesn't have to be long. > > > class Logs { > function getSQLLogger() { > return $this->logs["sql"]; > } > function __call() { > return $this->logs["default"]; > } > } > > $logs->getSqlLogger()->logSql("..."); > ..call to undefined method default::logSql()... > > -Hannes > > Right. That's what I meant by inconsistent code. The call $logs->getSQLLogger()->logSql("...") would function I presume. The reason your example code does not is because it is inconsistent. You're calling $logs->getSqlLogger() instead of $logs->getSQLLogger() Or am I missing your point ? -- Steven --------------070602050006080401010804--