|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #41286 Variant VT_ARRAY of VT_UI1
Submitted: 2007-05-04 17:12 UTC Modified: 2019-10-18 11:49 UTC
Avg. Score:4.3 ± 1.1
Reproduced:12 of 14 (85.7%)
Same Version:0 (0.0%)
Same OS:7 (58.3%)
From: milman at gmx dot de Assigned: cmb (profile)
Status: Assigned Package: COM related
PHP Version: Next Minor Version OS: Windows
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.
Block user comment
Status: Assign to:
Bug Type:
From: milman at gmx dot de
New email:
PHP Version: OS:


 [2007-05-04 17:12 UTC] milman at gmx dot de
for calling navigate2 you need to pass array of byte.
that is not possible.

Reproduce code:

$ie = new COM("InternetExplorer.Application");

$ie->Visible = true;
$ie->Height    = 500 ;
$ie->Width     = 700 ;

$post = array (ord('p'),ord('='),ord('1')) ;
$v = new VARIANT($post, VT_ARRAY|VT_UI1); 

//postdata need to be array of byte

$ie->Navigate2("http://host/web/echo_request.php",0,'',$v) ;


Expected result:
posting data to web-server

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-03-26 18:53 UTC] kaisellgren at gmail dot com
I am experiencing same problems.

$rng = new DOTNET("mscorlib", "System.Security.Cryptography.RNGCryptoServiceProvider");
$arr = array(0);
$v = new VARIANT($arr,VT_ARRAY | VT_UI1);

It throws an error: Fatal error: Uncaught exception 'com_exception' with message 'Variant type conversion failed: Type mismatch.
 [2016-12-31 00:11 UTC]
-Package: Feature/Change Request +Package: COM related
 [2017-02-13 23:46 UTC] muithimwema at gmail dot com
I am having the same error. See my post on Stack Overflow here
 [2019-10-18 11:49 UTC]
-Operating System: +Operating System: Windows -PHP Version: 5.2.2 +PHP Version: Next Minor Version -Assigned To: +Assigned To: cmb
 [2019-10-18 11:49 UTC]
Assigning to cmb for review as he's the new maintainer for COM.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Jan 21 10:01:23 2020 UTC