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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
29 - 27 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Mar 28 08:01:28 2024 UTC