[英]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. 我正在从PHP应用程序调用COM对象方法,但是启动脚本时,Apache / PHP CLI通常会崩溃。
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的错:没有它,我有干净的错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.