Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60452 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47177 invoked from network); 4 May 2012 21:23:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 May 2012 21:23:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=ww.galen@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ww.galen@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: ww.galen@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:46768] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/D4-18322-DD844AF4 for ; Fri, 04 May 2012 17:23:42 -0400 Received: by yenl5 with SMTP id l5so3610850yen.29 for ; Fri, 04 May 2012 14:23:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=15N6G0NseR2jFezpsDg4lfbOccP9RihwQCYIvlqmoNA=; b=Hnn5CXVDM733h2TllZbQ5Z+L5WPz4tyJvL92a884OFhX0H9SIGtQgjlOBuwWOPwo8n T4cYFzEb+RaX6hJc58w2CmapM33T9rq3YJx+hGN5lAz2FtKv/Zm7XchM7J4945oXG/ez NMNsQ0YmDzg6T1mMXluOOb5vAVrvgFiehTOf6hQEpP8HAFvTdDLRpo8AUuXwYDjTFd9J SYx/RrtT40xO2412y3/hzS1TfkLqCOUWuPeJS5pjLwN5YdINS7heeFmYWK5sQJhKAq9s XBw50I1JkFNNlvD2dRPvYXEyl1MvSFzAYzSf5zRmO6PXcA1rxYviP+CJ6WquGsO/Zzed KFbw== Received: by 10.42.89.8 with SMTP id e8mr1207628icm.50.1336166618901; Fri, 04 May 2012 14:23:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.144.201 with HTTP; Fri, 4 May 2012 14:22:58 -0700 (PDT) In-Reply-To: References: Date: Fri, 4 May 2012 14:22:58 -0700 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=90e6ba614d12ae2bf004bf3c8847 Subject: Re: [PHP-DEV] Fixing bug #18556 (was: Complete case-sensitivity in PHP) From: ww.galen@gmail.com (Galen Wright-Watson) --90e6ba614d12ae2bf004bf3c8847 Content-Type: text/plain; charset=ISO-8859-1 On Fri, May 4, 2012 at 7:01 AM, C.Koy wrote: > 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: > > > setlocale(LC_CTYPE, 'tr_TR'); > IJK(); > function IJK() {} > > That also ran without error for me. I'm not sure how to account for the different behavior. Here are the details of the system that I'm using: $ uname -a > Linux n10 3.2.6mtv10 #1 SMP Wed Mar 14 06:22:06 PDT 2012 x86_64 GNU/Linux > $ php -v > PHP 5.2.17 with Suhosin-Patch 0.9.7 (cli) (built: May 3 2012 12:16:32) > Copyright (c) 1997-2009 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies > with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend > Technologies > with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH --90e6ba614d12ae2bf004bf3c8847--