(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)
committerMatmaRex <matma.rex@gmail.com>
Wed, 30 Jan 2013 18:46:25 +0000 (19:46 +0100)
commit1bcba60f80c1c2d11ae66cf41977d61d2d417cdc
tree5ed395408e6af5a15c50f8b028c643d5bcbf0d7e
parent297a110e6d32c6540aaa1317d69f9bc903a50d08
(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: Iee4b8380406ae71c980dfdd7b9fdd0b58ecb9cd0
includes/Collation.php