|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17181 ADO crash
Submitted: 2002-05-13 10:02 UTC Modified: 2002-05-30 19:39 UTC
From: mbretter at jawa dot at Assigned:
Status: Closed Package: COM related
PHP Version: 4.2.0 OS: Windows 2000 Sp2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mbretter at jawa dot at
New email:
PHP Version: OS:


 [2002-05-13 10:02 UTC] mbretter at jawa dot at

this script lets php crash:

$conn = new COM( "ADODB.Connection" );
$conn->Provider = 'SQLOLEDB';
$conn->Open( "Server=wincubix;Uid=oebb;Pwd=oebb;Database=cubix" );
$conn->Execute('SET DATEFORMAT ymd');
$rs = new COM( "ADODB.Recordset" );
$rs->ActiveConnection = $conn;
$rs->Open("SELECT DISTINCT * FROM news WHERE gueltig_von <= '2002-05-13'");

changing the script like this will prevent the AV
//$rs->ActiveConnection = $conn;
$rs->Open("SELECT DISTINCT * FROM news WHERE gueltig_von <= '2002-05-13'", $conn);

I'm using the latest MSDAC (2.7) and the latest snapshot of php


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-14 02:21 UTC]
Our resources regarding COM and win32 seem to be very low. Are you create a debug build yourself and start debugging it?
 [2002-05-14 02:41 UTC] mbretter at jawa dot at
but I have not time to debug this, but with PHP4.1.2 this worked,
 [2002-05-14 03:08 UTC] mbretter at jawa dot at
also on PHP4.1.2 this doesen't work anymore, it seems that the upgrade to MSDAC2.7 caused this crash
 [2002-05-14 03:52 UTC]
Can you test 4.2.1 with MSDAC < 2.7 ?
 [2002-05-15 03:28 UTC] mbretter at jawa dot at
I tested it with MSACCESS and it works, but I will try to test it with php4.2.1 and MDAC < 2.7
 [2002-05-30 19:39 UTC]
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at In case this was a documentation 
problem, the fix will show up soon at
In case this was a website problem, the change will show
up on the site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Oct 07 22:05:53 2022 UTC