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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: moricio at hotmail dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 18 12:01:28 2024 UTC