Bug #55751 [Com]: printf issue in combinatin with com connection
| From: | michael dot fellinger at multitec-sono dot at | Date: | Wed, 21 Sep 2011 10:29:49 +0000 |
| Subject: | Bug #55751 [Com]: printf issue in combinatin with com connection | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163754@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55751&edit=1
ID: 55751
Comment by: michael dot fellinger at multitec-sono dot at
Reported by: michael dot fellinger at multitec-sono dot at
Summary: printf issue in combinatin with com connection
Status: Feedback
Type: Bug
Package: COM related
Operating System: Windows 7
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
5.3.8 solves the problem, thanks!
Previous Comments:
------------------------------------------------------------------------
[2011-09-21 08:42:11] pajoye@php.net
Please try with 5.3.8 or a snapshot.
------------------------------------------------------------------------
[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