On Wed, Jan 26, 2011 at 7:10 PM, Lukas Kahwe Smith <[email protected]>wrote:
> > On 26.01.2011, at 22:08, Tom Boutell wrote: > > > You have a great point about third party code suddenly thinking intl > > is really available. > > > > I guess we are doing the right thing by creating wrappers then. > > >>> I would think that the solution that I proposed would be better for > >>> performance reasons and because one doesn't have to remember to use > >>> the wrappers. > >> > >> I see serious problems with this solution. For instance, if some > >> external library depends on intl, it will use our implementation in > >> cases where intl is not installed. Since we only implement a subset of > >> intl, this will lead to weird and hard-to-debug problems. > > then they should be checking via > http://php.net/manual/en/function.extension-loaded.php > This is exactly what Bernhard proposed. We are refactoring the Locale component to provide these wrappers: https://github.com/Infranology/symfony/blob/numberformatinterface/src/Symfony/Component/Locale The intl replacement classes will provide a subset of the behaviours used by the Form and Validator components. This way the 'en' locale will be supported without the need to enable/install/compile ext/intl. The progress of this task are being tracked in the Pivotal Tracker: https://www.pivotaltracker.com/projects/130524 > > regards, > Lukas Kahwe Smith > [email protected] > > > > -- > 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]<symfony-devs%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en > -- Blog: http://eriksencosta.wordpress.com Twitter: @eriksencosta -- 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
