From: [EMAIL PROTECTED]
Operating system: win98/pws/ie5
PHP version: 4.2.3
PHP Bug Type: Reproducible crash
Bug description: Program performs "illegal operation"
creating a disconnected recordset with access_db/ADO/COM does not work
///////////////////////////////////////////////////
# to disconnect a recordset it must be created explicitly
$DB_RS = new COM("ADODB.Connection") or die("Cannot start ADO");
$DB_RS->Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" .
realpath($DB_Path));
$rstemp= new COM("ADODB.Recordset") or die("Cannot create Recordset");;
$rstemp->cursorlocation=3;
$rstemp->ActiveConnection = $DB_RS;
$rstemp->Open ($SQL,$DB_RS,2,1,0) ;
# this line below disconnects the recordset
$rstemp->ActiveConnection=null;
///////////////////////////////////////////////////
error from this line
$rstemp->ActiveConnection = $DB_RS;
--
Edit bug report at http://bugs.php.net/?id=22162&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22162&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22162&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22162&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22162&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22162&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22162&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22162&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22162&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22162&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22162&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22162&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22162&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22162&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22162&r=gnused