php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
48 - 18 = ?
Subscribe to this entry?

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

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-14 02:21 UTC] mfischer@php.net
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
Sorry,
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] mfischer@php.net
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] phanto@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 18:01:31 2024 UTC