#34564 [Opn->Asn]: reference (in/out) parameters don't work

From: Date: Tue, 20 Sep 2005 13:26:05 +0000
Subject: #34564 [Opn->Asn]: reference (in/out) parameters don't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85284@lists.php.net to get a copy of this message
ID: 34564 Updated by: sniper@php.net Reported By: milman at gmx dot de -Status: Open +Status: Assigned Bug Type: COM related Operating System: windows xp PHP Version: 5CVS-2005-09-20 (snap) -Assigned To: +Assigned To: wez New Comment: Assigned to the maintainer of COM. Previous Comments: ------------------------------------------------------------------------ [2005-09-20 14:31:41] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34564&edit=1

« previous php.bugs (#85284) next »