summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorGustavo André dos Santos Lopes <cataphract@php.net>2012-05-06 13:06:44 +0200
committerGustavo André dos Santos Lopes <cataphract@php.net>2012-05-13 23:03:07 +0200
commitac33e40d2ae7288f66f5e3d56e7ae8e3f0266144 (patch)
treebc45a8570fa801b4ace2e614b97a457ff412a370 /ext/reflection/php_reflection.c
parentf09961cbe5879df40e5fc9d6d424896caf2a6f64 (diff)
downloadphp-git-ac33e40d2ae7288f66f5e3d56e7ae8e3f0266144.tar.gz
Keep date precision in MessageFormatter.
MessageFormatter::parse and MessageFormat::format (and their static equivalents) now don't throw away better than second precision in the arguments. It's already bad enough that in MessageFormatter and IntlDateFormatter we use seconds since epoch instead of milliseconds since epoch, deviating from the ICU date representations. But we don't need to throw away extra precision when parsing dates; we can keep the seconds since epoch convention and return non integer doubles with only a small BC impact. Note that we already could return doubles from MessageFormatter::parse if the date was sufficiently in the past or in the future.
Diffstat (limited to 'ext/reflection/php_reflection.c')
0 files changed, 0 insertions, 0 deletions