php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30906 COM doesn't works
Submitted: 2004-11-26 13:34 UTC Modified: 2004-12-13 07:52 UTC
Votes:6
Avg. Score:4.7 ± 0.5
Reproduced:6 of 6 (100.0%)
Same Version:6 (100.0%)
Same OS:5 (83.3%)
From: egarcia at egm dot as Assigned:
Status: Wont fix Package: COM related
PHP Version: 4.3.10RC1 OS: Windows XP SP2
Private report: No CVE-ID: None
 [2004-11-26 13:34 UTC] egarcia at egm dot as
Description:
------------
I have the 4.3.9 version, I upgrade to make tests over the 4.3.10RC1, but I found that:

The COM interface doesn't works, I make tests with ADODB library, and when the code runs:

$dbc = new COM('ADODB.Connection');

It doesn't create the object.  This error doesn't happen in 4.3.9.

Reproduce code:
---------------
$y = new COM('ADODB.Connection');
if (is_resource($y)) {
	echo "OK";
} else {
	echo "fail";
}

Expected result:
----------------
OK

Actual result:
--------------
fail

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-26 13:44 UTC] egarcia at egm dot as
Sorry, the code to reproduce is:

$y = new COM('ADODB.Connection');
if ($y) {
	echo "OK";
} else {
	echo "fail";
}

If I test it on the WEB.
4.3.9 => OK
4.3.10RC1 => fail

If I test it on the CONSOLE.
4.3.9 => OK
4.3.10RC1 => OK
 [2004-12-06 03:52 UTC] ecgirl at iahk dot com
Same problem under Windows NT
 [2004-12-13 07:52 UTC] sniper@php.net
Use PHP 5 if you want workin COM support.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC