Re: [PHP] Bug #51739 tricky string to float conversion

2011-09-01 Thread Simon J Welsh
On 1/09/2011, at 8:43 PM, magic-...@damage.devloop.de wrote: > Simon J Welsh writes: >> On 1/09/2011, at 9:53 AM, magic-...@damage.devloop.de wrote: >>> Am Mittwoch, 31. August 2011, 20:48:37 schrieb Shawn McKenzie: On 08/31/2011 09:03 AM, magic-...@damage.devloop.de wrote: > var_dump((

Re: [PHP] Bug #51739 tricky string to float conversion

2011-09-01 Thread Florian Lemaitre
Le 01/09/2011 10:43, magic-...@damage.devloop.de a écrit : Simon J Welsh writes: On 1/09/2011, at 9:53 AM, magic-...@damage.devloop.de wrote: Am Mittwoch, 31. August 2011, 20:48:37 schrieb Shawn McKenzie: On 08/31/2011 09:03 AM, magic-...@damage.devloop.de wrote: var_dump((float)"8315e839da08

Re: [PHP] Bug #51739 tricky string to float conversion

2011-09-01 Thread magic-php
Simon J Welsh writes: On 1/09/2011, at 9:53 AM, magic-...@damage.devloop.de wrote: Am Mittwoch, 31. August 2011, 20:48:37 schrieb Shawn McKenzie: On 08/31/2011 09:03 AM, magic-...@damage.devloop.de wrote: var_dump((float)"8315e839da08e2a7afe6dd12ec58245d"); results in float(INF) The cast t

Re: [PHP] Bug #51739 tricky string to float conversion

2011-09-01 Thread Simon J Welsh
On 1/09/2011, at 9:53 AM, magic-...@damage.devloop.de wrote: > Am Mittwoch, 31. August 2011, 20:48:37 schrieb Shawn McKenzie: >> On 08/31/2011 09:03 AM, magic-...@damage.devloop.de wrote: >>> Hi, >>> I have opend Bug #51739 in 2010. It was closed as bogus before my last >>> question was answered.

[PHP] Bug #51739 tricky string to float conversion

2011-08-31 Thread magic-php
Hi, I have opend Bug #51739 in 2010. It was closed as bogus before my last question was answered. It would be fine to know what you think about that bug. In short: var_dump((float)"8315e839da08e2a7afe6dd12ec58245d"); results in float(INF) This is because "8315" is treated as base and "e8