|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34440 COM Error confuse with [] ()
Submitted: 2005-09-09 17:11 UTC Modified: 2007-03-07 16:58 UTC
Avg. Score:5.0 ± 0.0
Reproduced:9 of 9 (100.0%)
Same Version:5 (55.6%)
Same OS:8 (88.9%)
From: anecdote at yahoo dot com Assigned: wez (profile)
Status: Not a bug Package: COM related
PHP Version: 5.2.1 OS: win32
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.
Block user comment
Status: Assign to:
Bug Type:
From: anecdote at yahoo dot com
New email:
PHP Version: OS:


 [2005-09-09 17:11 UTC] anecdote at yahoo dot com
Hello I experienced some bug but not sure may be the new way of PHP....

I use php 5.0.2 with my company project with COM (My company COM) and just upgraded to 5.0.5

[Sample Code]

$cat=new COM("XModule.Categories");
$list=$protype->Items[0];//Error this line
echo $list;


Fatal error: Uncaught exception 'com_exception' with message 'Error [0x8002000e] Invalid number of parameters. ' in C:\PHP\Customer\test.php:4 Stack trace: #0
C:\PHP\Customer\test.php(4): unknown() #1 {main} thrown in C:\PHP\Customer\test.php(4): on line 4

[Expected Result]

Nokia 6680


I test with many old projects with 5.0.2/5.0.3/5.0.4 no problem.

I tried to test
***Access 2002-2003/MDAC 2.8***
with 5.0.5/Lastest CVS got same error.

[Sample Code]

$con = new COM("ADODB.Connection");
$rs = new COM("ADODB.Recordset");
$con->Open("PROVIDER=Microsoft.Jet.OLEDB.4.0; DATA
$query = "SELECT * FROM Company";
$rs->Open($query, $con, 1, 3);
echo $rs->Fields->Item[0];//Error this line

[Expected Result]

Simple Mobile

Any suggestion ?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-12 23:25 UTC]
Assigned to the maintainer of COM, Wez, have fun. :)

 [2005-11-25 14:02 UTC] yummie007 at yahoo dot com
Why php team don't fix this bug in 5.1.0 

This bug cause php can not work with many COM

Now my company moved all projects to ASP/ASP.NET

Abominable Bug of PHP

Fixed a bug to make a new bug ?
 [2005-11-25 14:29 UTC]
Send a patch to fix it if you're so interested.
 [2006-04-18 13:53 UTC] srabol at mail dot tele dot dk
The erorr is still in version 5.1.2

If you have the fix, why not implement it?
Do you really want all to move to .NET ?
 [2006-11-24 09:33 UTC] june2004 at yahoo dot com
1 year ago, nothing changed - -'

PHP Team...please tell me for the other ways to avoid this problem.

No seriously talking about this bug on internet.

Now I use 5.2.0 everything are OK but this problem.

Thank you PHP Team for making PHP better.
 [2006-12-24 12:35 UTC]
Please try using this CVS snapshot:
For Windows:

should be fixed in CVS - please try your custom COM object
 [2007-01-01 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2007-03-07 16:56 UTC] anecdote at yahoo dot com
I'm a user who reported this bug sinc 9 Sep 2005.

2 years ago...The PHP team always said...Please try using this CVS...

I tried many CVS but nothing changed, many people say the same in other bug reports.

This means maybe the bug checking and report system of php have no the efficiency.

Like a child, dissatisfied no fix(repeat -> php absolute free!) must praise only.

Waste time, wait wait wait.........

Now, even ASP not better than PHP, but ASP has no problem in the same thing.

Thank you PHP team for making many things in php better.
And hope someday many things in php will better too.

Must be fixed in PHP10.x.x

 [2007-03-07 16:58 UTC]
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Oct 04 04:05:53 2022 UTC