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

2011-09-01 Thread magic-php
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. It would be fine to know what you think about that bug. In short:

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

2011-08-31 Thread 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. It would be fine to know what you think about that bug. In short: var_dump((float)8315e839da08e2a7afe6dd12ec58245d); results in

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

2011-08-31 Thread Shawn McKenzie
On 08/31/2011 01:48 PM, Shawn McKenzie wrote: The cast to float is truncating the invalid characters and since your string contains a float that is INF (8315e839) before the truncation at the d, then it returns INF. Makes perfect sense. Just FYI... Don't post your troubles or