#31159 [Fbk->Opn]: COM object access is not working
| From: | moricio at hotmail dot com | Date: | Tue, 21 Dec 2004 15:52:52 +0000 |
| Subject: | #31159 [Fbk->Opn]: COM object access is not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-70853@lists.php.net to get a copy of this message | ||
ID: 31159
User updated by: moricio at hotmail dot com
Reported By: moricio at hotmail dot com
-Status: Feedback
+Status: Open
Bug Type: COM related
Operating System: Windows XP/2000 Server
PHP Version: 4.3.10
New Comment:
I tried the snpashot and problem is still there.
The result message is:
PHP has encountered an Access Violation at 6E6E6F63
Thanks.
MRamirez
Previous Comments:
------------------------------------------------------------------------
[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