|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-03-05 02:23 UTC] Louis dot cellier at hotmail dot com
[2011-03-05 06:41 UTC] lingtalfi at gmail dot com
[2011-03-05 13:50 UTC] felipe@php.net
[2011-03-05 14:01 UTC] lingtalfi at gmail dot com
[2011-03-05 14:09 UTC] felipe@php.net
-Status: Open
+Status: Feedback
[2011-03-05 14:09 UTC] felipe@php.net
[2011-03-05 14:13 UTC] lingtalfi at gmail dot com
-Status: Feedback
+Status: Open
[2011-03-05 14:13 UTC] lingtalfi at gmail dot com
[2011-03-05 15:58 UTC] lingtalfi at gmail dot com
[2012-03-23 17:48 UTC] nikic@php.net
-Status: Open
+Status: No Feedback
[2012-03-23 17:48 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 20 19:00:01 2025 UTC |
Description: ------------ Hi, I use macport php5.3 and intl my configuration Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/1.0.0d DAV/2 PHP/5.3.5 trying intl functions, I get NaN value instead of expected (int) value. Also had similar issue with NumberFormatter. Test script: --------------- $format_FR = 'Le {0,date,full} à {1,time,short}, {2,number,integer} pommes coûtent {3,number,currency}'; $format_US = 'On {0,date,full} at {1,time,short}, {2,number,integer} apples cost {3,number,currency}'; $data = array(time(), time(), 5, 3); echo MessageFormatter::formatMessage('fr_FR', $format_FR, $data) . "<br />"; echo MessageFormatter::formatMessage('en_US', $format_US, $data) . "<br />"; Expected result: ---------------- Le vendredi 4 mars 2011 à 22:37, 5 pommes coûtent 3 € On Friday, March 4, 2011 at 10:37 PM, 5 apples cost $3 Actual result: -------------- Le vendredi 4 mars 2011 à 22:37, 5 pommes coûtent NaN On Friday, March 4, 2011 at 10:37 PM, 5 apples cost NaN