Package: php4-pear
Version: 4:4.3.10-18
Severity: important
Tags: patch

The function mssql_fetch_array fails when called
with two parameters when retreiving associative
arrays. It can be replaced by mssql_fetch_assoc.

--- mssql.php.orig      2006-11-07 15:26:40.037971192 +0200
+++ mssql.php   2006-11-07 15:27:01.993633424 +0200
@@ -195,7 +195,7 @@
             }
         }
         if ($fetchmode & DB_FETCHMODE_ASSOC) {
-            $arr = @mssql_fetch_array($result, MSSQL_ASSOC);
+            $arr = @mssql_fetch_assoc($result);
             if ($this->options['portability'] & DB_PORTABILITY_LOWERCASE && 
$arr) {
                 $arr = array_change_key_case($arr, CASE_LOWER);
             }


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-3-k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages php4-pear depends on:
ii  php4-cli                     4:4.3.10-18 command-line interpreter for the p
ii  php4-common                  4:4.3.10-18 Common files for packages built fr

-- no debconf information
--- mssql.php.orig      2006-11-07 15:26:40.037971192 +0200
+++ mssql.php   2006-11-07 15:27:01.993633424 +0200
@@ -195,7 +195,7 @@
             }
         }
         if ($fetchmode & DB_FETCHMODE_ASSOC) {
-            $arr = @mssql_fetch_array($result, MSSQL_ASSOC);
+            $arr = @mssql_fetch_assoc($result);
             if ($this->options['portability'] & DB_PORTABILITY_LOWERCASE && 
$arr) {
                 $arr = array_change_key_case($arr, CASE_LOWER);
             }

Reply via email to