lstrojny/php-cld — pull request #7 by arnaud-lb (2012-01-17 11:06:37+00:00)
Title: Made normalized_score a double[3]

This changes normalized_score variable to a double[3] since CompactLangDet::DetectLanguage apparently takes a double[3]. (I was seeing many INVALID_LANGUAGE returned from detect(), it turns out that CLD was overriding languages[0] when writing to (&normalized_score)[1].)

I've also included a change that return scores and percentages from from detect().