Hi.
There's no more precision in the result on lenny -- you can see that
in the results of your example -- rather there are just slight
differences in the floating point implementation -- possibly just
differences in rounding.  The proper fix for this is to get
SilverStripe to fix their code and for you to patch your existing
servers.  For future deployments, i wouldn't recommend using this
authentication because it's seriously broken and impossible to fix
properly and maintain backward compatibility.  SilverStripe needs to
implement a non-broken version of their authentication for new sites
(if they haven't already).

It's possible that lenny is paying attention to the GSL_IEEE_MODE env.
variable and this might change the behaviour on lenny:
GSL_IEEE_MODE="round-to-nearest" php test.php
GSL_IEEE_MODE="round-down" php test.php
GSL_IEEE_MODE="round-up" php test.php
GSL_IEEE_MODE="round-to-zero" php test.php

-Craig

On Jul 30, 9:03 am, Stu Meads <[email protected]> wrote:
> I'm really looking for a configuration setting or something, that code's
> from SilverStripe and as I put together a lot of SilverStripe sites, I don't
> want to be hacking the security section on all of them.  It did give me an
> idea on what's happening though.
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to