Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60445 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76813 invoked from network); 4 May 2012 14:02:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 May 2012 14:02:16 -0000 Authentication-Results: pb1.pair.com header.from=can5koy@gmail.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.3 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.3 plane.gmane.org Received: from [80.91.229.3] ([80.91.229.3:51544] helo=plane.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/E5-38082-661E3AF4 for ; Fri, 04 May 2012 10:02:15 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SQJ5H-0001tx-7T for internals@lists.php.net; Fri, 04 May 2012 16:02:11 +0200 Received: from 94.54.2.206 ([94.54.2.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 May 2012 16:02:11 +0200 Received: from can5koy by 94.54.2.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 May 2012 16:02:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Fri, 04 May 2012 17:01:59 +0300 Lines: 46 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 94.54.2.206 User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: Subject: Re: [PHP-DEV] Fixing bug #18556 (was: Complete case-sensitivity in PHP) From: can5koy@gmail.com ("C.Koy") On 5/2/2012 10:03 PM, Galen Wright-Watson wrote: > On Wed, May 2, 2012 at 5:23 AM, C.Koy wrote: > >> On 5/1/2012 9:11 PM, Galen Wright-Watson wrote: >> >>> On Thu, Apr 26, 2012 at 3:45 AM, C.Koy wrote: >>> >>> As of 5.3.0 this bug does not exist for function names. Only classes and >>>> interfaces. >>>> >>>> >>>> Turns out, if you cause a function to be called dynamically by (e.g.) >>> using >>> a variable function, the bug will surface. >>> >>> >> setlocale(LC_CTYPE, 'tr_TR'); >>> function IJK() {} >>> # succeeds >>> IJK(); >>> >> >> If literal function call precedes the function definition, that would fail >> too in 5.2.17, but not in 5.3.0. >> What has changed in this regard 5.2->5.3 ? >> >> > Do you mean something like the following? > > setlocale(LC_CTYPE, 'tr_TR'); > IJK(); > setlocale(LC_CTYPE, 'en_US'); > function IJK() {echo __FUNCTION__, "\n";} > > I couldn't get it to generate an error under PHP 5.2.17. What am I missing? > Try this with 5.2.17: