#31159 [Opn->Csd]: COM object access is not working
| From: | edink@php.net | Date: | Thu, 23 Dec 2004 01:43:53 +0000 |
| Subject: | #31159 [Opn->Csd]: COM object access is not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-70946@lists.php.net to get a copy of this message | ||
ID: 31159
Updated by: edink@php.net
Reported By: moricio at hotmail dot com
-Status: Open
+Status: Closed
Bug Type: COM related
Operating System: Windows XP/2000 Server
PHP Version: 4.3.10
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2004-12-21 16:52:51] moricio at hotmail dot com
I tried the snpashot and problem is still there.
The result message is:
PHP has encountered an Access Violation at 6E6E6F63
Thanks.
MRamirez
------------------------------------------------------------------------
[2004-12-21 15:43:54] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2004-12-17 20:56:21] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31159&edit=1