ID:               34564
 Comment by:       massimiliano at it dot ibm dot com
 Reported By:      milman at gmx dot de
 Status:           Assigned
 Bug Type:         COM related
 Operating System: windows xp
 PHP Version:      5CVS-2005-09-20 (snap)
 Assigned To:      wez
 New Comment:

Hello,
on today 23.06.2006:

I can reproduce the same problem also on Win2K...
using the sample code here.

I tried with php 5.1.4 and (php 6 development) with the same behavior.

On php 4 abend give me a memory read fault popup reporting instruction
at address 0x1003b481 had referenced memory at 0x00000000.

IE version 6.0.2800...

Regards, Massimiliano


Previous Comments:
------------------------------------------------------------------------

[2005-09-20 15:26:04] [EMAIL PROTECTED]

Assigned to the maintainer of COM.


------------------------------------------------------------------------

[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

Reply via email to