#26012 [Fbk->Opn]: mssql_fetch_array
| From: | boccara at netvision dot net dot il | Date: | Tue, 28 Oct 2003 15:52:12 +0000 |
| Subject: | #26012 [Fbk->Opn]: mssql_fetch_array | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-49575@lists.php.net to get a copy of this message | ||
ID: 26012
User updated by: boccara at netvision dot net dot il
Reported By: boccara at netvision dot net dot il
-Status: Feedback
+Status: Open
Bug Type: MSSQL related
Operating System: win2k SBS SP4 & Apache 2.0.47
PHP Version: 4.3.4RC2
New Comment:
it's possible ( I didn't check because there is a lot of data).
anyway I used in my request RTRIM to prevent any unwanted space.
note that this bug is really NEW to the actual version
Previous Comments:
------------------------------------------------------------------------
[2003-10-28 10:42:04] iliaa@php.net
Is there a space in the actual SQL data inside the db?
------------------------------------------------------------------------
[2003-10-27 17:05:43] boccara at netvision dot net dot il
Description:
------------
I have upgraded from 4.3.4 RC1
my program works already about 6 month with the latest version of php.
the probleme is that the fetch of an sql query return additonal non
breaking space as result.
this bug is absolutly new, I search in my code hours, and I returned to
the 4.3.4 RC1 and everything is Ok now.
Reproduce code:
---------------
Function dbFetch ($iResult, &$tabColonne) {
$iNbCol = 0;
$tabColonne = array();
switch (SGBD) {
case "MSSQL":
$tabColonne = mssql_fetch_array($iResult);
if($tabColonne)
{
$iNbCol = count($tabColonne);
}
break;
}
return $iNbCol;
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26012&edit=1