note 32378 deleted from function.setlocale by didou

From: Date: Mon, 26 May 2003 09:17:52 +0000
Subject: note 32378 deleted from function.setlocale by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-49020@lists.php.net to get a copy of this message
Note Submitter: brice@allenbrand.com ---- French users warning ! (PHP 4.1.2) Check this : result will be 0.125 and NOT 0.625 first file : test.php <?PHP setlocale(LC_ALL,"fr_FR"); include "testinclude.php"; pipo(0.125); ?> ------------------------ second file : testinclude.php <?PHP function pipo($a) { $a=$a+0.5; echo $a; } ?> ------------------------ To avoid this, put the setlocale in the include file and everything will be ok.

« previous php.notes (#49020) next »