I was testing some Forms features of Symfony2 when I got stuck in this error:
Fatal error: Class 'Locale' not found in /Users/eriksencosta/Study/sf2/sandbox/app/cache/dev/classes-a430b.php on line 1394 I not had the intl extension compiled. After recompiling PHP with it, I found the check.php script from sandbox does not checked for this extension. Looking at the code of Form and Locale components, I found the Locale class is being used every time ContryField, LanguageField and LocaleField are used (they all call Symfony\Component\Locale\Locale static methods). My error is not related to those fields, it was because Symfony\Component\Form\FormConfiguration not checked if the Locale class existed (I created the ticket 9413 with a patch for this error). Anyways Symfony does not provide a fallback mechanism for the absence of ext/intl Locale class (Symfony\Component\Locale\Locale is a subclass of ext/intl Locale class), IMHO it seems to me it need to be mandatory. I added a check for this in https://github.com/Infranology/symfony-sandbox/tree/check_for_intl_ext_as_mandatory Thanks. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
