PHP 4.0 Bug #9196 Updated: Cannot create ADO objects with MDAC 2.6
| From: | peter dot johnson at unified dot co dot uk | Date: | Sat, 10 Feb 2001 17:55:47 +0000 |
| Subject: | PHP 4.0 Bug #9196 Updated: Cannot create ADO objects with MDAC 2.6 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46154@lists.php.net to get a copy of this message | ||
ID: 9196
User Update by: peter.johnson@unified.co.uk
Old-Status: Open
Status: Closed
Bug Type: COM related
Description: Cannot create ADO objects with MDAC 2.6
I've managed to work out what was wrong - it seems that if I am using the ZendOptimiser I get
problems wth COM, otherwise it works OK.
Previous Comments:
---------------------------------------------------------------------------
[2001-02-09 13:45:11] peter.johnson@unified.co.uk
The code snippet below fails on the line which sets the Active Connection of the Command Object. It
works OK with MDAC 2.5 SP1, but not MDAC 2.6 - weird...
<?
require "adovbs.php";
$conGFA = new COM("ADODB.Connection") or die("Unable to instantiate GFA DB
Connection");
$conGFA -> ConnectionString = "Provider=SQLOLEDB;OLE DB Services=0;Persist Security
Info=False;User ID=UserID;Password=Password;Initial Catalog=gfa;Data Source=DBSERVER;";
$conGFA -> Open;
$cmdGFA = new COM("ADODB.Command") or die("Unable to instantiate GFA DB Command
Object");
$cmdGFA -> ActiveConnection = $conGFA -> ConnectionString;
?>
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=9196