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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ceefour at gauldong dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sun Dec 22 02:01:28 2024 UTC