Edit report at https://bugs.php.net/bug.php?id=55751&edit=1

 ID:                 55751
 Updated by:         paj...@php.net
 Reported by:        michael dot fellinger at multitec-sono dot at
 Summary:            printf issue in combinatin with com connection
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            COM related
 Operating System:   Windows 7
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Please try with 5.3.8 or a snapshot.


Previous Comments:
------------------------------------------------------------------------
[2011-09-21 08:25:03] michael dot fellinger at multitec-sono dot at

Description:
------------
I use PHP Version 5.3.5 but it seems to be not solved in newer Versions

It only happends with the number or string 1900 and only if the execute command 
from the adodb connection was performed.
I gues i also happens with other numbers.

Test script:
---------------
$ADODB = new COM( 'ADODB.Connection' );
$ADODB->open($strConn);                      #connection to a MS-Access Database

$RS = $ADODB->execute("SELECT Lagerwert FROM tblStammdaten WHERE 
tblStammdaten.Seriennummer='74925KR9';");
echo $RS->Fields(0)->Value . "<br>";
$x = sprintf("%f",$RS->Fields(0)->Value);
echo $x;


Expected result:
----------------
1900
1900.000000

Actual result:
--------------
1900
18:0.000000 


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



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

Reply via email to