tchwork / utf8

Portable and performant UTF-8, Unicode and Grapheme Clusters for PHP
Apache License 2.0
627 stars 50 forks source link

PHP 5.2 #21

Closed skycafemix closed 10 years ago

skycafemix commented 10 years ago

Hello, am I correct in understanding you do not want to support php 5.2? I am localizing a Drupal-based application requiring php 5.2.17, Drupal 6, CentOS 5.10 unfortunately, and have been collecting my own library of functions from the net (quite a "patchwork!" ;) to make it utf-8 (Japanese) compatible including fluxbb,corpsee, etc. Corpsee I see recommended people use your library so would like to know if it is possible to do so. If possible I wanted to run the phpunit tests to see if it works on 5.2 but namespaces etc. seems like a no go?

nicolas-grekas commented 10 years ago

You're correct :) 5.3 is almost at EOL and 5.2 is already since years. But feel free to port the code to 5.2 if you need it. It should not be very hard: replacing namespaces by underscore names and replacing static:: by self:: should be enough.