From: milman at gmx dot de
Operating system: windows xp
PHP version: 5CVS-2005-09-20 (snap)
PHP Bug Type: COM related
Bug description: reference (in/out) parameters don't work
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 bug report at http://bugs.php.net/?id=34564&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34564&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=34564&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=34564&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34564&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34564&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34564&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34564&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34564&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34564&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34564&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=34564&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=34564&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34564&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34564&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34564&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34564&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34564&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34564&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34564&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34564&r=mysqlcfg