php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11755 Can't pass array to COM obj
Submitted: 2001-06-27 15:41 UTC Modified: 2001-07-01 17:27 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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: heejung73 at yahoo dot com
New email:
PHP Version: OS:

 

 [2001-06-27 15:41 UTC] heejung73 at yahoo dot com
i can't pass an array to my com object. 

the object works fine w/ ASP: 
Dim X(10); 
Obj.X = X; 

when i try to do the same w/ PHP, i get the following errors (b.t.w., i have no problems passing scalar values): 

Warning: PropPut() failed: Exception occurred. in xxx.php on line 90 
or 
Warning: Unsupported variant type: 8204 (0x200C) in xxx.php on line 237 

i tried using VARIANT & that didn\'t seem to help... 

The interfaces in my idl file looks like this: 
[propput, id(32), helpstring(\"property X\")] HRESULT X([in] VARIANT newVal); 
[propget, id(32), helpstring(\"property X\")] HRESULT X([out, retval] VARIANT *pVal); 


any help or clue would be greatly appreciated. 

thanks! 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-01 17:27 UTC] phanto@php.net
try a recent snapshot. arrays are not supportet in php4.0.6
 [2001-07-01 17:27 UTC] phanto@php.net
closed
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue May 17 07:03:34 2022 UTC