From:             pilot_vijay at hotmail dot com
Operating system: Windows XP
PHP version:      5.1.1
PHP Bug Type:     COM related
Bug description:  COM returning multidimensional variant array

Description:
------------
Hi,
  I call a COM function which returns a multi dimensional variant array of
type VT_VARIANT|VT_ARRAY. I am using PHP 5.0.5 version.
   I have problems to print this multi array and I get a warning saying
"can handle only 1 dimension variant arrays."
   Kindly find my code below and let me know where the problem is.

Reproduce code:
---------------
//call the COM
$instance = new COM("ArrayTry.myarray");

//define the VT_VARIANT|VT_ARRAY which will hold the multi dimensional
variant array returned from the COM

$StringVariant = new VARIANT();

//call the COM function GetUserList() which returns the multi variant
array 
$StringVariant=$instance->GetUserList();

print_r($StringVariant);  // here I get Object id #number as output in the
php page



Expected result:
----------------
Should print the multi array and its associated elements.

Actual result:
--------------
display shows "Object ID#number"

-- 
Edit bug report at http://bugs.php.net/?id=35956&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=35956&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=35956&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=35956&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35956&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=35956&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35956&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35956&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35956&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35956&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35956&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=35956&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=35956&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35956&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35956&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35956&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35956&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35956&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35956&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35956&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35956&r=mysqlcfg

Reply via email to