php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31159 COM object access is not working
Submitted: 2004-12-17 20:56 UTC Modified: 2004-12-23 02:43 UTC
Votes:6
Avg. Score:5.0 ± 0.0
Reproduced:6 of 6 (100.0%)
Same Version:3 (50.0%)
Same OS:4 (66.7%)
From: moricio at hotmail dot com Assigned:
Status: Closed Package: COM related
PHP Version: 4.3.10 OS: Windows XP/2000 Server
Private report: No CVE-ID: None
 [2004-12-17 20:56 UTC] moricio at hotmail dot com
Description:
------------
this sample code 

$conn = new COM("ADODB.Connection")
or die("Cannot start ADO");
$conn->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=./thefile.mdb;");
$rs = $conn->Execute("SELECT * FROM thetable");

doesn't work in PHP version 4.3.10.

DCOMCNFG was used to allow permissions on the COM object for execution.

It worked flawlessly in version 4.3.9

MRamirez


Reproduce code:
---------------
$conn = new COM("ADODB.Connection")
or die("Cannot start ADO");
$conn->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=./thefile.mdb;");
$rs = $conn->Execute("SELECT * FROM thetable");

Expected result:
----------------
A successful connection to the COM Object.


Actual result:
--------------
PHP has encountered an Access Violation at 6E6E6F63



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-23 02:43 UTC] edink@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 09:01:29 2024 UTC