Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0b4

Request #16903 Add ability to use ODBTP extension
Submitted: 2009-12-14 00:28 UTC
From: hedroom Assigned: quipo
Status: Closed Package: MDB2_Driver_mssql (version 1.2.1)
PHP Version: 5.2.5 OS: Windows 2003 Server
Roadmaps: (Not assigned)    
Subscription  


 [2009-12-14 00:28 UTC] hedroom (Wade Hedgren)
Description: ------------ With the advent of PHP 5.3.x and the fact that the php_mssql.dll is no longer included, it may become necessary for the MDB2_Driver_mssql driver to recognize the ODBTP extension. I recently tested the ODBPT extension with MDB2 (2.4.1) and MDB2_Driver_mssql (1.2.1) by changing the mssql.php connect function to check for the ODBTP extension if the MSSQL extension check fails (see code below). It has worked perfectly so far on my test server. It would be nice to see this incorporated into the upcoming release. Thanks Wade Hedgren (code found at line ~314 in MDB2/Driver/mssql.php) if (!PEAR::loadExtension($this->phptype)) { if (!PEAR::loadExtension("odbtp") && function_exists('mssql_connect')) { return $this->raiseError(MDB2_ERROR_NOT_FOUND, null, null, 'extension '.$this->phptype.' is not compiled into PHP', __FUNCTION__); } }

Comments

 [2009-12-26 19:01 UTC] quipo (Lorenzo Alberton)
-Status: Open +Status: Closed -Assigned To: +Assigned To: quipo
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.