From: [EMAIL PROTECTED]
Operating system: Windows 2000 Sp2
PHP version: 4.2.0
PHP Bug Type: COM related
Bug description: ADO crash
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
--
Edit bug report at http://bugs.php.net/?id=17181&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17181&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17181&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17181&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17181&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17181&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17181&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17181&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17181&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17181&r=globals