Details
-
Bug
-
Resolution: Fixed
-
Medium
-
2.5.10, 4.0.x-dev, 3.3.6
-
None
-
eZ Platform, Ibexa Open Source
Description
Kernel's Twig Extension FileSize formatter produces different results depending on PHP version and/or most likely version of the intl extension shipped with it.
Exposed via \eZ\Publish\Core\MVC\Symfony\Templating\Tests\Twig\Extension\FileSizeExtensionTest
Expected
26.15126 MB wrong local so we take the default one which is en-GB here\n 123.1231 MB wrong local so we take the default one which is en-GB here\n 456.5 GB wrong local so we take the default one which is en-GB here\n 789.78979 TB wrong local so we take the default one which is en-GB here\n 789.7897897898 PB wrong local so we take the default one which is en-GB here\n 789.79 EB wrong local so we take the default one which is en-GB here\n 789789789.7898 EB wrong local so we take the default one which is en-GB here'
Actual
26 MB wrong local so we take the default one which is en-GB here\n 123 MB wrong local so we take the default one which is en-GB here\n 456 GB wrong local so we take the default one which is en-GB here\n 790 TB wrong local so we take the default one which is en-GB here\n 790 PB wrong local so we take the default one which is en-GB here\n 790 EB wrong local so we take the default one which is en-GB here\n 789789790 EB wrong local so we take the default one which is en-GB here'