From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version: 4.3.0
PHP Bug Type: MSSQL related
Bug description: single data type not well returned
In the PHP 4.3.0 exists a bug with the MSSQL single datatype, in the follow
var_dump, you can see the PUNTAJE field.
array(6) {
[0]=>
string(7) "3422864"
["ID"]=>
string(7) "3422864"
[1]=>
string(20) "3.2051283432282E-306"
["PUNTAJE"]=>
string(20) "3.2051283432282E-306"
[2]=>
string(10) "7725000.00"
["ADJUDICADO"]=>
string(10) "7725000.00"
}
But in PHP 4.2.3 the bug doesn't exists, like you can see:
array(6) {
[0]=>
string(7) "3422864"
["ID"]=>
string(7) "3422864"
[1]=>
string(7) "175.652"
["PUNTAJE"]=>
string(7) "175.652"
[2]=>
string(10) "7725000.00"
["ADJUDICADO"]=>
string(10) "7725000.00"
}
The MSSQL fields data type are:
ID = int
PUNTAJE = single
ADJUDICADO = money
The PHP.ini is the same for both versions, the only change is the PHP
version with its extensions.
--
Edit bug report at http://bugs.php.net/?id=21662&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21662&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21662&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21662&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21662&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21662&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21662&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21662&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21662&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21662&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21662&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21662&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21662&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21662&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21662&r=gnused