#31159 [Opn->Fbk]: COM object access is not working
| From: | iliaa@php.net | Date: | Tue, 21 Dec 2004 14:43:54 +0000 |
| Subject: | #31159 [Opn->Fbk]: COM object access is not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-70849@lists.php.net to get a copy of this message | ||
ID: 31159
Updated by: iliaa@php.net
Reported By: moricio at hotmail dot com
-Status: Open
+Status: Feedback
Bug Type: COM related
Operating System: Windows XP/2000 Server
PHP Version: 4.3.10
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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