From: ceefour at gauldong dot net Operating system: Windows XP SP1 PHP version: 4.3.10 PHP Bug Type: COM related Bug description: new COM() crashes PHP
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 bug report at http://bugs.php.net/?id=31921&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31921&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31921&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31921&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31921&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31921&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31921&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31921&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31921&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31921&r=support Expected behavior: http://bugs.php.net/fix.php?id=31921&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31921&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31921&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31921&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31921&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31921&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31921&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31921&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31921&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31921&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31921&r=mysqlcfg