RE: [PHP] String -> Number Automatic Conversion

From: Date: Thu, 03 Feb 2005 18:53:17 +0000
Subject: RE: [PHP] String -> Number Automatic Conversion
Groups: php.general 
Request: Send a blank email to php-general+get-208024@lists.php.net to get a copy of this message
On 03 February 2005 16:07, Nuzzo Art-CINT116 wrote: > I am not sure if this is a bug or I am just doing something > dumb but I am having a problem with automatic converting of > strings to a number between 0 and -1. For example: > 1 => "-.15" + 0, > [1] => 0 > Is this a bug or am I missing something. It's a bug -- see http://bugs.php.net/bug.php?id=30726 Reported fixed on 18-Jan-2005, so I guess you're looking at 4.3.11/5.0.4 to actually contain the fix. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

« previous php.general (#208024) next »