简体   繁体   中英

PHP/Apache crash when PHP call COM objects

I am working on calling COM object method from my PHP application, but often Apache/PHP CLI crashes when I launch the script.

This one for example

$domainObject = new COM("Excel.application"); 
foreach ($domainObject as $obj) 
{ 
   echo $obj->Name . "<br />"; 
} 

or this one

$o=new COM("NeoScope2InterOpCOM.NeoScope2InterOp"); 
$o->StartConnection(FALSE);
$o->SaisieEvent(); //SaisieEvent is a method from the COM object

How to handle this? There are errors for sure is my calls, but it is a bit hard to understand and fix if it crash each time.

Thanks
Cédric

这是Xdebug的错:没有它,我有干净的错误。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM