http://qa.mandrakesoft.com/show_bug.cgi?id=4001


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From [EMAIL PROTECTED]  2003-02-09 09:29 -------
OK That fixed the bug for me.
I tested on a 9.2rc1 : installed Apache2, PHP, php-pear from CD, then used the
new php-mssql-4.3.3-1mdk and it worked.
I used pear DB 1.4.0 and 1.5.0RC1 and both worked.
I only tested a simple SQL "SELECT ...", just hope the everything works.

Thanks a lot !!

Note : Trying to update the Pear package DB, I found and filled an other bug :
5178 about  php-pear.

-- 
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: RESOLVED
creation_date: 
description: 
The new Pear DB 1.4 uses features (constants and functions) that exist in mssql
code but not in sybase. 
So Pear DB 1.4 doesn't work with mssql.
Solutions would be to provide a php-mssql RPM (or, maybe, include the mssql code
in php-sybase ?)

Details :
----- from php-devel/extensions/mssql/php_mssql.c  -----

static void php_mssql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
...

/* {{{ proto array mssql_fetch_array(int result_id [, int result_type])
   Returns an associative array of the current row in the result set specified
by result_id */
PHP_FUNCTION(mssql_fetch_array)
{
    php_mssql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU, MSSQL_BOTH);
}

----- PEAR DB/mssql.php -----
1.3 lign 161 :  $ar = @mssql_fetch_array($result);
1.4 lign 181 :  $ar = @mssql_fetch_array($result, MSSQL_ASSOC);

Reply via email to