php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31921 new COM() crashes PHP
Submitted: 2005-02-11 00:46 UTC Modified: 2005-02-11 01:30 UTC
From: ceefour at gauldong dot net Assigned:
Status: Not a bug Package: COM related
PHP Version: 4.3.10 OS: Windows XP SP1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
32 - 31 = ?
Subscribe to this entry?

 
 [2005-02-11 00:46 UTC] 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-11 01:30 UTC] edink@php.net
Duplicate.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC