| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2005-02-11 01:30 UTC] edink@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 05:00:01 2025 UTC | 
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)