|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-09-20 14:31 UTC] milman at gmx dot de
Description:
------------
reference paramater in com-function-calls don't work
Reproduce code:
---------------
<?php
class IEEventSinker {
function BeforeNavigate2(&$dom, $url, $flags, $TargetFrameName, $PostData, $Headers, & $cancel) {
// THAT IS THE PROBLEM. IT DOSN'T WORK
$cancel = true ;
}
}
$ie = new COM("InternetExplorer.Application");
$sink =new IEEventSinker();
com_event_sink($ie, $sink, "DWebBrowserEvents2");
$ie->Visible = true;
$ie->Navigate("http://www.php.net");
while(!$sink->terminated) {
com_message_pump(4000);
}
?>
Expected result:
----------------
the InternetExplorer shows a blank page
Actual result:
--------------
he show the page
the same in VB shows the expected.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 04:00:01 2025 UTC |
2 probelms here: (1) The first is a problem with the testcase. Variants should be modified by using the variant_set() fucntion, i.e variant_set($cancel, true) not cancel = true; (2) With (1) fixed navigation is still not cancelled because of a bug in the COM code. I have posted a patch for this problem to internals list for review by Wez, et al.