From: mhabr at sszn dot cz
Operating system: MS SBS 2003
PHP version: 4.3.5
PHP Bug Type: MSSQL related
Bug description: Problem with mssql_fetch_array
Description:
------------
I connect to ms sql server.When I use mssql_fetch_array and then i wonna
get collumns values , every value has an additional space at its end.
Thanks a lot
Reproduce code:
---------------
$query = mssql_query("SELECT id,email,password,name FROM users WHERE
login='$login'");
$row = mssql_fetch_array($query);
if (mssql_num_rows($query) != 0) {
1) echo '*'.md5($passwd).'*';
2) echo '*'.$row["password"].'*';
first echo 1) shows something like *4sdfdsf6ddt*
but echo 2) shows *4sdfdsf6ddt *
___
this space isnt needed.
Expected result:
----------------
no space at the end of $row["column_name"]
Actual result:
--------------
additional space at the end of $row[].
--
Edit bug report at http://bugs.php.net/?id=27831&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27831&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27831&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27831&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27831&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27831&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27831&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27831&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27831&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27831&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27831&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27831&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27831&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27831&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27831&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27831&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27831&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27831&r=float