php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13928 No support for VARIANT array return type
Submitted: 2001-11-05 00:06 UTC Modified: 2001-11-15 07:21 UTC
From: starver at kc dot rr dot com Assigned:
Status: Closed Package: COM related
PHP Version: 4.0.6 OS: WinNT 2000 Pro
Private report: No CVE-ID: None
 [2001-11-05 00:06 UTC] starver at kc dot rr dot com
I have built a 'standard' dual-interface COM dll. Most functions return data as a 1 dimmension SafeArray of VARIANTs. I get the following when I try:

$jReader = new COM("journalmancom.reader") or die("Unable to instantiate JournalManCOM object");

$var = new VARIANT();
$jReader->GetPrimaryEventTypes( $var );
print $var->value;


Warning: Unsupported variant type: 8204 (0x200C)

This corresponds to VT_VARIANT | VT_ARRAY. I noticed that php_variant_to_pval() doesn't look for VT_ARRAY.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-15 05:21 UTC] phanto@php.net
try one of the 4.0.7 release candidates or a current cvs snapshot. this has been fixed for a while now, read former bugreports next time before you submit a new one ...

harald
 [2001-11-15 07:21 UTC] sniper@php.net
fixed -> closed.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 08 16:01:29 2024 UTC