ID:               31548
 User updated by:  amonw at hotmail dot com
 Reported By:      amonw at hotmail dot com
 Status:           Open
 Bug Type:         Unknown/Other Function
 Operating System: redhat linux 9
 PHP Version:      4.3.10
 New Comment:

Sorry, made a mistake.

Expected result:
----------------
0.9
0.9


Previous Comments:
------------------------------------------------------------------------

[2005-01-14 10:37:55] amonw at hotmail dot com

Description:
------------
An numeric string between -1 and 0 and without a leading zero can't be
converted correctly while php 4.2.2 can.

Reproduce code:
---------------
<?php
print "1"+"-.1";
$a="1";
$b="-.1";
print "\n";
print $a+$b;
?>

Expected result:
----------------
-0.9
-0.9

Actual result:
--------------
1
1


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31548&edit=1

Reply via email to