php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19908 Calling Release() on COM object throws exception
Submitted: 2002-10-14 13:25 UTC Modified: 2002-10-17 11:22 UTC
From: msisolak at yahoo dot com Assigned:
Status: Closed Package: COM related
PHP Version: 4.3.0-pre1 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: msisolak at yahoo dot com
New email:
PHP Version: OS:

 

 [2002-10-14 13:25 UTC] msisolak at yahoo dot com
Testing this code in 4.3.0-pre1:

<?php

$adodb = new COM("ADODB.Connection") or die("Cannot start ADO");
$adodb->Release();

?>

under ISAPI results in this error page for me:

Warning: (null)(): Invoke() failed: Exception occurred. Source: ADODB.Connection Description: Operation is not allowed when the object is closed. in c:\work\test.php on line 4

Warning: String is not zero-terminated (ZZZZZZZZ?̏*ZZZZ ) (source: c:\php-4.3.0pre1\ext\com\com.c:2112) in c:\work\test.php on line 4

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-16 18:54 UTC] phanto@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


this is an adodb issue, the exception is not thrown by php.
 [2002-10-17 08:56 UTC] msisolak at yahoo dot com
I don't believe this is an ADODB problem.  The same error happens if I do this:

<?php

$xml = new COM("MSXML.DOMDocument") or die("failed to create");
$xml->Release();

?>
 [2002-10-17 10:50 UTC] phanto@php.net
i already noticed this and working on a fix, sorry for bogusifying :)
 [2002-10-17 11:22 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.

i already noticed this and working on a fix, sorry for bogusifying :)
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Oct 02 17:05:52 2022 UTC