(bug 43801) add a getter for ICU version to ICUCollation
authorMatmaRex <matma.rex@gmail.com>
Fri, 18 Jan 2013 21:36:32 +0000 (22:36 +0100)
committerBrian Wolff <bawolff+wn@gmail.com>
Fri, 8 Feb 2013 20:57:08 +0000 (16:57 -0400)
commite8c0c2ad46f4b1c36dcc920f3a280c14d277a2fe
tree8797fdcf4d65e3906aaa985a15cde8090c15c043
parenteb525842c12b3145ac187157c70dcb04a7a68efb
(bug 43801) add a getter for ICU version to ICUCollation

It will be necessary to be able to use correct version of Unicode
data files.

The constant INTL_ICU_VERSION this getter returns isn't really
documented. It is available since PHP 5.3.7 (see PHP bug 54561),
the getter will fail gracefully on older PHPs. It should be possible to
determine the ICU version on these by grepping the output of phpinfo(),
but I don't think such a minor improvement is worth such a huge hack.

Change-Id: I85353559439bfddee7c5ba90894d30dd8ef0e0e8
includes/Collation.php
maintenance/language/generateCollationData.php