[Tickets #4094] File/PDF.php - Bug since PHP 4.3.10 with certain locales

bugs@bugs.horde.org bugs at bugs.horde.org
Wed Jul 5 04:23:58 PDT 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4094
-----------------------------------------------------------------------
 Ticket             | 4094
 Updated By         | Jan Schneider <jan at horde.org>
 Summary            | File/PDF.php - Bug since PHP 4.3.10 with certain locales
 Queue              | Horde Framework Packages
 Version            | HEAD
 State              | Feedback
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


Jan Schneider <jan at horde.org> (2006-07-05 04:23) wrote:

A 3rd alternative would be to set the locale to en_US during the the
sprintf() calls, but that would mean a lot of locale switching back and
forth inside the methods. Not less ugly either.
A 4th would be to use a class method sprintf() that replaces /%\.\df/ with
F if necessary.

I think the constant is the best solution, it has to be prefixed though,
e.g. FILE_PDF_FLOAT, but that would make a lot of ugly code. 4) is
probably the most elegant solution.




More information about the bugs mailing list