Home » Database » DB » Bug #7227
Wrong Parameter Count
Details
| Submitted | 2006-03-28 17:54 UTC |
|---|---|
| From | jwagoner at seminolesheriff dot org |
| Assigned | lsmith |
| Status | Closed |
| Package | DB |
| PHP Version | 5.0.5 |
| OS | Ubuntu |
| Roadmaps | (Not assigned) |
Comments
[2006-03-28 17:54 UTC] jwagoner at seminolesheriff dot org
Description:
------------
When using DB_mssql with fetch mode DB_FETCHMODE_OBJECT, the function fetchInto attempts to use mssql_fetch_array() with 2 parameters. In PHP 5, the second parameter was removed, and thus errors (which is caught by the @). I simply fixed it by removing the second parameter.
Test script:
---------------
$db = DB::connect('mssql://blah:blah@blah/blah');
$db->setFetchMode(DB_FETCHMODE_OBJECT);
$result = $db->query('SELECT * FROM blah');
Expected result:
----------------
The row's actual data.
Actual result:
--------------
The rows are NULL.