Re: Fixing bug #18556 (was: Complete case-sensitivity in PHP)
| From: | C.Koy | Date: | Fri, 04 May 2012 14:01:59 +0000 |
| Subject: | Re: Fixing bug #18556 (was: Complete case-sensitivity in PHP) | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60445@lists.php.net to get a copy of this message | ||
On 5/2/2012 10:03 PM, Galen Wright-Watson wrote:
On Wed, May 2, 2012 at 5:23 AM, C.Koy<can5koy@gmail.com> wrote:Try this with 5.2.17:On 5/1/2012 9:11 PM, Galen Wright-Watson wrote:Do you mean something like the following?On Thu, Apr 26, 2012 at 3:45 AM, C.Koy<can5koy@gmail.com> wrote: As of 5.3.0 this bug does not exist for function names. Only classes andIf 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 ?interfaces. Turns out, if you cause a function to be called dynamically by (e.g.)using a variable function, the bug will surface.<?php setlocale(LC_CTYPE, 'tr_TR'); function IJK() {} # succeeds IJK();<?php 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?
<?php
setlocale(LC_CTYPE, 'tr_TR');
IJK();
function IJK() {}