|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22162 Program performs "illegal operation"
Submitted: 2003-02-11 02:19 UTC Modified: 2003-02-20 05:34 UTC
From: webber123456 at hotmail dot com Assigned:
Status: Closed Package: COM related
PHP Version: 4.3.1-dev OS: win98/pws/ie5
Private report: No CVE-ID: None
 [2003-02-11 02:19 UTC] webber123456 at hotmail dot com
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->ActiveConnection = $DB_RS;

$rstemp->Open ($SQL,$DB_RS,2,1,0) ;

# this line below disconnects the recordset
error from this line 
$rstemp->ActiveConnection = $DB_RS;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-11 15:36 UTC] webber123456 at hotmail dot com
using latest snapshot made no difference

still get following 

(error message dialog box)

This program has performed an illegal operation and will be shut down
If the problem persists, contact the program vendor

(click close -  browser then returns following message)

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
 [2003-02-11 15:39 UTC]
updated version info. (and next time, DO NOT USE THE 'Add Comment' link when you reply to your OWN report!!)

 [2003-02-11 16:21 UTC] webber123456 at hotmail dot com
what does this mean 

"updated version info"  ?
 [2003-02-20 05:34 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot 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 in short time.
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Dec 05 09:03:49 2022 UTC