#31921 [Opn->Bgs]: new COM() crashes PHP
| From: | edink@php.net | Date: | Fri, 11 Feb 2005 00:30:44 +0000 |
| Subject: | #31921 [Opn->Bgs]: new COM() crashes PHP | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73821@lists.php.net to get a copy of this message | ||
ID: 31921
Updated by: edink@php.net
Reported By: ceefour at gauldong dot net
-Status: Open
+Status: Bogus
Bug Type: COM related
Operating System: Windows XP SP1
PHP Version: 4.3.10
New Comment:
Duplicate.
Previous Comments:
------------------------------------------------------------------------
[2005-02-11 00:46:32] ceefour at gauldong dot net
Description:
------------
$x = new COM("Word.Application") crashes PHP
It crashes even without a web server (i.e. running PHP from command
line).
$x = com_load("Word.Application") works fine though.
It's impossible to get a backtrace since PHP crashes when executing the
new COM() line.
$x =& new COM(...) doesn't crash PHP, but the returned object is
usable. I guess this is the "intended" behavior since COM objects
shouldn't be passed by reference.
Reproduce code:
---------------
1. $x = new COM("Word.Application")
2. $x = com_load("Word.Application")
Expected result:
----------------
1. COM object
2. COM object
Actual result:
--------------
1. php crashes
2. COM object (works fine)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31921&edit=1