| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2002-06-17 08:50 UTC] hholzgra@php.net
  [2002-06-23 13:57 UTC] ludovic dot langeNOSPAM at free dot fr
  [2002-10-10 11:53 UTC] iliaa@php.net
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 12:00:01 2025 UTC | 
Using the code below results into truncation of the floating point numbers if the code is included after the setlocale call. I saw some old reports of this problem, but the developers claimt to have fixed this. Tested it on 3 servers, one running php4.2.0 with apache 1.3.24 on gentoo linux 1.1a, the second using apache-1.3.24 with php4.1.2 on redhat 7.1 and the third running apache-1.3.24 with php4.1.2 on slackware 7. <? include('class1.php'); $test = new class1(); setlocale(LC_ALL,"nl_NL"); $test = new class1(); include('class2.php'); $test = new class2(); ?> class1.php <? class class1 { function class1() { $float = 1.1; var_dump($float); } } $float = 1.1; var_dump($float); ?> class2.php <? class class2 { function class2() { $float = 1.1; var_dump($float); } } $float = 1.1; var_dump($float); ?> If you need any extra information, I'll supply you with that :)