PHP 4.0 Bug #8857: microtime() doesn't work after setlocale(LC_NUMERIC,"pl")

From: Date: Tue, 23 Jan 2001 11:30:27 +0000
Subject: PHP 4.0 Bug #8857: microtime() doesn't work after setlocale(LC_NUMERIC,"pl")
Groups: php.dev 
Request: Send a blank email to php-dev+get-44801@lists.php.net to get a copy of this message
From: muhlig@us.edu.pl Operating system: Solaris 2.4 PHP version: 4.0 Latest CVS (23/01/2001) PHP Bug Type: *Function Specific Bug description: microtime() doesn't work after setlocale(LC_NUMERIC,"pl") the script: <?php echo "A: ", (double)microtime()*1000000; setlocale(LC_NUMERIC,"pl"); echo "<BR>"; echo "B: ", (double)microtime()*1000000; ?> the script's output: A: 773149 B: 0 it works however under Solaris 2.6: A: 588313 B: 590748 It is possible pl locale for Solaris 2.4 is somehow broken (although it seems elsewhere to work). Nevertheless even buggy locale shouldn't prevent other (PHP) functions (in consequence it breaks mt_srand and mt_rand) from working. What is interesting: all locale categories do not produce this effect except LC_NUMERIC and LC_ALL. -- Edit Bug report at: http://bugs.php.net/?id=8857&edit=1

« previous php.dev (#44801) next »