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 misunderstandings as bug
reports. The PHP developers sift through too many reports as it is and
many or maybe the majority are "support" tickets like yours that are not
"bugs". The people assigned to bugs are not going to explain why your
issue is not a bug in detail. They are tasked with fixing bugs, and
they have many bug reports (mostly like yours). The appropriate place
for you to post would be here on this list first. If the consensus of
the veteran folks on this list is "wow, that's a bug" or some such, then
we will tell you to post a bug report.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php