php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11760 VT_ARRAY not supported
Submitted: 2001-06-27 19:41 UTC Modified: 2001-07-01 17:30 UTC
From: heejung73 at yahoo dot com Assigned:
Status: Closed Package: COM related
PHP Version: 4.0.6 OS: Windows 2000
Private report: No CVE-ID: None
 [2001-06-27 19:41 UTC] heejung73 at yahoo dot com
hi, 

the following line of code 
  $vXXX = new VARIANT($XXX, VT_ARRAY|VT_BYREF);

results in
  Warning:  Type not supportet or not yet implemented

please let me know if this is a real bug or if i'm doing something wrong.  i hope i'm doing something wrong coz i really need this to work!

thanks...



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-01 17:30 UTC] phanto@php.net
both is the case :)

first: array support is not implemented in php4.0.6. you have to use a recent snapshot.

second: VT_ARRAY is not a type, its only a modificator like VT_BYREF, you have to use something like VT_I4|VT_ARRAY|VT_BYREF

but the variant class is only needed if you explicitly want to cast your var to a specific type. you can directly pass a php-variable to a com-method as well.

harald.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 19:01:30 2024 UTC