ID: 31921
Updated by: [EMAIL PROTECTED]
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