ID: 31493 Updated by: [EMAIL PROTECTED] Reported By: csaba at alum dot mit dot edu -Status: Open +Status: Closed Bug Type: COM related Operating System: Win XP Pro PHP Version: 5.0.3
Previous Comments: ------------------------------------------------------------------------ [2005-03-09 01:40:57] csaba at alum dot mit dot edu I have tried this with the March 7 build and it is still not working in the same fashion, but I have a bit more information on it. It is tied to the fact that there is no previous navigation before the javascript:whatever is hit. For example, <?php $ie = new COM("InternetExplorer.Application"); //$nav = "javascript:'<body>Hi Mom</body>'"; $nav = "javascript:alert('Hi Mom')"; $ie->Visible = true; $ie->Navigate($nav); ?> will vanish IE, but <?php $ie = new COM("InternetExplorer.Application"); //$nav = "javascript:'<body>Hi Mom</body>'"; $nav = "javascript:alert('Hi Mom')"; $ie->Visible = true; $ie->Navigate("about:blank"); $ie->Navigate($nav); ?> will keep IE around (you can also use the non alert version). The point is that the 'pre navigation' to "about:blank" allows the main navigation to go through somehow. ------------------------------------------------------------------------ [2005-02-28 21:09:15] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2005-01-17 07:46:27] csaba at alum dot mit dot edu I have replaced the sleep(...) with appropriate com_message_pump(...), but I still get the same results. ------------------------------------------------------------------------ [2005-01-17 04:32:22] [EMAIL PROTECTED] You should never call sleep() in a script that uses COM, as deadlocks and bad mojo can result. Instead, use com_message_pump() and specify your delay in milliseconds. If that doesn't help any, I'll try to look into this problem later in the week. ------------------------------------------------------------------------ [2005-01-17 04:02:24] csaba at alum dot mit dot edu As a double check, I downloaded, then installed, PHP ver 5.0.4-dev (cli) (built Jan 17 2005 02:30:00). Still the same problem. IE goes away (and rings a bell) as soon as the Navigate is hit. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/31493 -- Edit this bug report at http://bugs.php.net/?id=31493&edit=1