|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33108 COM two dimensional variant problem
Submitted: 2005-05-23 11:43 UTC Modified: 2005-05-31 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:3 (100.0%)
From: php at it-solutions dot org Assigned:
Status: No Feedback Package: COM related
PHP Version: 5.* OS: WINDOWS XP
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: php at it-solutions dot org
New email:
PHP Version: OS:


 [2005-05-23 11:43 UTC] php at it-solutions dot org
Basically - when I try to derefference a two dimensional array returned from a COM object PHP bombs with a CGI Error:

CGI / FastCGI has encountered a problem and needs to close.  We are sorry for the inconvenience.


CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

The call works fine in VB so I know th 2-D array is ok.(Or at least ok for VB) 

I know this action wasn't available in 4 - but I thought I could do it in 5.

the code bellow shows how the problem can be created

I have some additional info - but will wait for this to be requested (you may already know that this function doesn't work)

Reproduce code:
$SQLRes = new VARIANT(); // Variable to store result
//$SQLRes = array();
$Complete = new VARIANT("False"); // Variable to store returned bool

// some SQL Statement that DOES return data
$GetUserSQL = new VARIANT("SELECT X from Y WHERE Z = 'A'");

//Execute the COM function and get some data back in $SQLRes
$Complete = $DataClass->ExecuteSQL($GetUserSQL,$SQLRes,0);

//Try to output the value of the first (or second) index of the array (I did try this with index 0 too...)
print $SQLRes[1][1];

Expected result:
Exepcted output would be the value in the array

Actual result:
CGI Error.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-23 11:44 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-05-23 12:17 UTC] php at it-solutions dot org
Thanks Sniper

I have downloaded this and tried it (I didn't reboot windoze - but I did restart the IIS which I think would be enough...

Same problem...
 [2005-05-23 16:24 UTC]
We need a complete, self-contained, working script that we can use to reproduce the problem.
 [2005-05-31 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".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 22:01:28 2024 UTC