|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9196 Cannot create ADO objects with MDAC 2.6
Submitted: 2001-02-09 13:45 UTC Modified: 2001-02-10 12:55 UTC
From: peter dot johnson at unified dot co dot uk Assigned:
Status: Closed Package: COM related
PHP Version: 4.0.4pl1 OS: Win2K Winnt4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
34 - 17 = ?
Subscribe to this entry?

 [2001-02-09 13:45 UTC] peter dot johnson at unified dot co dot 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;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-10 12:55 UTC] peter dot johnson at unified dot co dot uk
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.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Dec 02 13:05:53 2022 UTC