php.net |  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->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;


Patches

Pull Requests

History

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)

Php
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] sniper@php.net
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] phanto@php.net
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 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 in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 19:01:29 2024 UTC